namespace sbcLabSystem.Data.Migrations { using System; using System.Data.Entity.Migrations; public partial class addTaskSchedule : DbMigration { public override void Up() { CreateTable( "dbo.ScheduleTasks", c => new { Id = c.Int(nullable: false, identity: true), Name = c.String(), Seconds = c.Int(nullable: false), Type = c.String(), Enabled = c.Boolean(nullable: false), StopOnError = c.Boolean(nullable: false), LastStartUtc = c.DateTime(), LastEndUtc = c.DateTime(), LastSuccessUtc = c.DateTime(), }) .PrimaryKey(t => t.Id); } public override void Down() { DropTable("dbo.ScheduleTasks"); } } }