Skip to content
Snippets Groups Projects

Topic/804-niceProjectUrl

Merged Marcel Nellesen requested to merge Topic/804-niceProjectUrl into Product/510-niceProjectUrl
4 files
+ 31
3
Compare changes
  • Side-by-side
  • Inline
Files
4
using FluentMigrator;
using System;
namespace Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[Migration(202005281400)]
public class Migration202005281400ProjectUrl : FluentMigrator.Migration
{
public override void Down()
{
Delete.Column("Slug").FromTable("Projects");
}
public override void Up()
{
Alter.Table("Projects").AddColumn("Slug").AsString(63).Nullable();
Execute.EmbeddedScript("Migration202005281400ProjectUrl_up.sql");
Alter.Table("Projects").AlterColumn("Slug").AsString(63).NotNullable();
}
}
}
Loading