27 lines
1.2 KiB
C#
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));
|
|
}
|
|
}
|
|
}
|