demo20230512/Migrations/202212210131336_TransportAddColumns.cs

25 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 TransportAddColumns : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProductLCAFabSurveyForm_Transports", "TransportContent", c => c.String());
AddColumn("dbo.ProductLCAFabSurveyForm_Transports", "KgCO2eAvg", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterValue", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterDescription", c => c.String());
}
public override void Down()
{
DropColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterDescription");
DropColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterValue");
DropColumn("dbo.ProductLCAFabSurveyForm_Transports", "KgCO2eAvg");
DropColumn("dbo.ProductLCAFabSurveyForm_Transports", "TransportContent");
}
}
}