27 lines
1.3 KiB
C#
27 lines
1.3 KiB
C#
|
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|