demo20230512/Migrations/202205190228088_add_OtherCompounds_factors.cs

25 lines
1.1 KiB
C#
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class add_OtherCompounds_factors : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProductLCAFabSurveyForm_OtherCompounds", "GWPFactor", c => c.Decimal(precision: 24, scale: 12));
AddColumn("dbo.ProductLCAFabSurveyForm_OtherCompounds", "CO2Factor", c => c.Decimal(precision: 24, scale: 12));
AddColumn("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "GWPFactor", c => c.Decimal(precision: 24, scale: 12));
AddColumn("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "CO2Factor", c => c.Decimal(precision: 24, scale: 12));
}
public override void Down()
{
DropColumn("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "CO2Factor");
DropColumn("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "GWPFactor");
DropColumn("dbo.ProductLCAFabSurveyForm_OtherCompounds", "CO2Factor");
DropColumn("dbo.ProductLCAFabSurveyForm_OtherCompounds", "GWPFactor");
}
}
}