demo20230512/Migrations/202210140721325_addLCAkitchenCoeffs.cs

27 lines
1.3 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 addLCAkitchenCoeffs : DbMigration
{
public override void Up()
{
AddColumn("dbo.LCACommonSurveyForm_Kitchens", "heatValue", c => c.Decimal(precision: 24, scale: 12));
AddColumn("dbo.LCACommonSurveyForm_Kitchens", "calculatedCO2e", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.LCACommonSurveyForm_Kitchens", "calculatedCH4e", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.LCACommonSurveyForm_Kitchens", "calculatedN2Oe", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.LCACommonSurveyForm_Kitchens", "equivalentCO2e", c => c.Decimal(nullable: false, precision: 24, scale: 12));
}
public override void Down()
{
DropColumn("dbo.LCACommonSurveyForm_Kitchens", "equivalentCO2e");
DropColumn("dbo.LCACommonSurveyForm_Kitchens", "calculatedN2Oe");
DropColumn("dbo.LCACommonSurveyForm_Kitchens", "calculatedCH4e");
DropColumn("dbo.LCACommonSurveyForm_Kitchens", "calculatedCO2e");
DropColumn("dbo.LCACommonSurveyForm_Kitchens", "heatValue");
}
}
}