Skip to content
Snippets Groups Projects

Update: Included new Resource type and removed flags

Merged Marcel Nellesen requested to merge Topic/1159-rtdApi into Product/1154-resourceTypeDefinition
5 files
+ 32
9
Compare changes
  • Side-by-side
  • Inline
Files
5
using FluentMigrator;
namespace Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[Migration(202011161100)]
public class Migration202011161100ResourceTypeDefinition : FluentMigrator.Migration
{
public override void Down()
{
Delete.FromTable("ResourceTypes").Row(new { DisplayName = "linked" });
Delete.Table("LinkedResourceType");
}
public override void Up()
{
Insert.IntoTable("ResourceTypes").Row(new { DisplayName = "linked" });
Create.Table("LinkedResourceType")
.WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid);
}
}
}
Loading