demo20230512/Migrations/202301090230058_AddAbandonedStageTable.cs

34 lines
1.1 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 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");
}
}
}