34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
|
namespace Weee.Migrations
|
|||
|
{
|
|||
|
using System;
|
|||
|
using System.Data.Entity.Migrations;
|
|||
|
|
|||
|
public partial class DropAbandonedStage : DbMigration
|
|||
|
{
|
|||
|
public override void Up()
|
|||
|
{
|
|||
|
DropTable("dbo.ProductLCAAbandonedStage");
|
|||
|
}
|
|||
|
|
|||
|
public override void Down()
|
|||
|
{
|
|||
|
CreateTable(
|
|||
|
"dbo.ProductLCAAbandonedStage",
|
|||
|
c => new
|
|||
|
{
|
|||
|
ID = c.Int(nullable: false),
|
|||
|
WasteWeight = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
RecyclePercentage = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
ReusePercentage = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
RecoverPercentage = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
IncinerationParameter = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
AbandonedParameter = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|||
|
Description = c.String(),
|
|||
|
})
|
|||
|
.PrimaryKey(t => t.ID)
|
|||
|
.ForeignKey("dbo.ProductLCA", t => t.ID)
|
|||
|
.Index(t => t.ID);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|