34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
|
namespace Weee.Migrations
|
|||
|
{
|
|||
|
using System;
|
|||
|
using System.Data.Entity.Migrations;
|
|||
|
|
|||
|
public partial class AddAbandonedStageTable : DbMigration
|
|||
|
{
|
|||
|
public override void Up()
|
|||
|
{
|
|||
|
CreateTable(
|
|||
|
"dbo.ProductLCAAbandonedStage",
|
|||
|
c => new
|
|||
|
{
|
|||
|
ID = c.Int(nullable: false, identity: true),
|
|||
|
LCAID = c.Int(nullable: false),
|
|||
|
MaterialWasteType = c.Int(),
|
|||
|
ProcessType = c.Int(),
|
|||
|
WasteWeight = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
ParameterValue = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
ParameterDescription = c.String(),
|
|||
|
KgCO2e = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
})
|
|||
|
.PrimaryKey(t => t.ID)
|
|||
|
.ForeignKey("dbo.ProductLCA", t => t.LCAID)
|
|||
|
.Index(t => t.ID);
|
|||
|
}
|
|||
|
|
|||
|
public override void Down()
|
|||
|
{
|
|||
|
DropTable("dbo.ProductLCAAbandonedStage");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|