Skip to content
Snippets Groups Projects
Commit ed995dc9 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Update: Add DisplayName to Resources Table

parent d1e6e130
No related branches found
No related tags found
1 merge request!16Sprint/20190829
......@@ -77,10 +77,10 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="DataModel\CsDatabase.tt">
<None Include="DataModel\CsDatabase.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>CsDatabase.generated.cs</LastGenOutput>
</Content>
</None>
</ItemGroup>
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
......
using FluentMigrator;
namespace Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[Migration(201908231520)]
public class Migration201908231520ResourceDisplayName : FluentMigrator.Migration
{
public override void Down()
{
Delete.Column("DisplayName").FromTable("Resources");
}
public override void Up()
{
Alter.Table("Resources").AddColumn("DisplayName").AsString(200).Nullable();
}
}
}
......@@ -148,6 +148,7 @@
<Compile Include="Migrations\Migration201908121401GitlabResource.cs" />
<Compile Include="Migrations\Migration201908071616RdsResource.cs" />
<Compile Include="Migrations\Migration201907100900UserProfilesApi.cs" />
<Compile Include="Migrations\Migration201908231520ResourceDisplayName.cs" />
<Compile Include="Migrator.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.28.0" />
<package id="Cake" version="0.34.1" />
</packages>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment