demo20230512/Migrations/202301031426177_makeupParameterValueUnitDesc.cs

29 lines
1.6 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 makeupParameterValueUnitDesc : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProductLCAFabSurveyForm_Wastes", "Unit", c => c.String(nullable:false,defaultValue:"",unicode:true,maxLength:10));
AddColumn("dbo.ProductLCAFabSurveyForm_Wastes", "ParameterValue", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.ProductLCAFabSurveyForm_Wastes", "ParameterDescription", c => c.String(unicode:true,nullable:true));
AddColumn("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterValue", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterDescription", c => c.String(unicode: true, nullable: true));
AddColumn("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterUnit", c => c.String(nullable: false, defaultValue: "", unicode: true, maxLength: 10));
}
public override void Down()
{
DropColumn("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterUnit");
DropColumn("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterDescription");
DropColumn("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterValue");
DropColumn("dbo.ProductLCAFabSurveyForm_Wastes", "ParameterDescription");
DropColumn("dbo.ProductLCAFabSurveyForm_Wastes", "ParameterValue");
DropColumn("dbo.ProductLCAFabSurveyForm_Wastes", "Unit");
}
}
}