Skip to content
Snippets Groups Projects

Product/150 user project creation

Merged L. Ellenbeck requested to merge Product/150-UserProjectCreation into master
2 files
+ 30
0
Compare changes
  • Side-by-side
  • Inline

Files

using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[Migration(201907081510)]
public class Migration201907081510EnhanceProjectApi : FluentMigrator.Migration
{
public override void Down()
{
Delete.Column("StartDate").FromTable("Projects");
Delete.Column("EndDate").FromTable("Projects");
Delete.Column("Keywords").FromTable("Projects");
}
public override void Up()
{
Alter.Table("Projects")
.AddColumn("StartDate").AsDateTime().WithDefault(SystemMethods.CurrentDateTime)
.AddColumn("EndDate").AsDateTime()
.AddColumn("Keywords").AsString(1000);
}
}
}
Loading