Skip to content

Instantly share code, notes, and snippets.

@ManfredLange
Created November 10, 2020 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManfredLange/cf4d4fa08a5570d5da011d09250f83c5 to your computer and use it in GitHub Desktop.
Save ManfredLange/cf4d4fa08a5570d5da011d09250f83c5 to your computer and use it in GitHub Desktop.
Improved migration now using UpOnlyMigration as base class
using FluentMigrator;
namespace CmdLine.DataAccess.Migrations
{
[Migration(201109_0935)]
public class M201109_0935_AddTable_List : UpOnlyMigration
{
public override void Up()
{
Create.Table("List")
.WithColumn("Id").AsGuid().PrimaryKey().NotNullable()
.WithColumn("Name").AsString().NotNullable()
;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment