37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
namespace Weee.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class addISO14064attribute : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
AddColumn("dbo.Fabs", "ISO14064TUV", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064DNV", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064BV", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064SGS", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064BSI", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064UL", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064Other", c => c.Boolean(nullable: false));
|
|
AddColumn("dbo.Fabs", "ISO14064OtherString", c => c.String());
|
|
AddColumn("dbo.Fabs", "ISO14064Gas", c => c.Decimal(nullable: false, precision: 24, scale: 12));
|
|
AddColumn("dbo.Fabs", "ISO14064PassedYear", c => c.Int(nullable: false));
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
DropColumn("dbo.Fabs", "ISO14064PassedYear");
|
|
DropColumn("dbo.Fabs", "ISO14064Gas");
|
|
DropColumn("dbo.Fabs", "ISO14064OtherString");
|
|
DropColumn("dbo.Fabs", "ISO14064Other");
|
|
DropColumn("dbo.Fabs", "ISO14064UL");
|
|
DropColumn("dbo.Fabs", "ISO14064BSI");
|
|
DropColumn("dbo.Fabs", "ISO14064SGS");
|
|
DropColumn("dbo.Fabs", "ISO14064BV");
|
|
DropColumn("dbo.Fabs", "ISO14064DNV");
|
|
DropColumn("dbo.Fabs", "ISO14064TUV");
|
|
}
|
|
}
|
|
}
|