demo20230512/Migrations/201503230433461_add ISO14064 attribute.cs

37 lines
1.6 KiB
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
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");
}
}
}