demo20230512/Migrations/202211030725386_matchCurrentDB.cs
2023-05-12 10:20:28 +08:00

27 lines
1.2 KiB
C#

namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class matchCurrentDB : DbMigration
{
public override void Up()
{
AlterColumn("dbo.Companies", "VATNumber", c => c.String(nullable:true));
AlterColumn("dbo.Companies", "CEOName", c => c.String(nullable: true));
AlterColumn("dbo.OrgLCA36Material", "UnitConverted", c => c.String(nullable: false));
AlterColumn("dbo.OrgLCA36Material", "Unit", c => c.String(nullable: false));
AlterColumn("dbo.OrgLCA36Material", "UnitDeclared", c => c.String(nullable: false));
}
public override void Down()
{
AlterColumn("dbo.Companies", "VATNumber", c => c.String(nullable: false));
AlterColumn("dbo.Companies", "CEOName", c => c.String(nullable: false));
AlterColumn("dbo.OrgLCA36Material", "UnitConverted", c => c.String(nullable: false, maxLength: 10));
AlterColumn("dbo.OrgLCA36Material", "Unit", c => c.String(nullable: false, maxLength: 10));
AlterColumn("dbo.OrgLCA36Material", "UnitDeclared", c => c.String(nullable: false, maxLength: 10));
}
}
}