25 lines
1.1 KiB
C#
25 lines
1.1 KiB
C#
namespace Weee.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class MaterialAddColumnReverse : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReceivingAmount");
|
|
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ActualUsage");
|
|
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReturnAmount");
|
|
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Depiction");
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Depiction", c => c.String());
|
|
AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReturnAmount", c => c.Decimal(nullable: false, precision: 24, scale: 12));
|
|
AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ActualUsage", c => c.Decimal(nullable: false, precision: 24, scale: 12));
|
|
AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReceivingAmount", c => c.Decimal(nullable: false, precision: 24, scale: 12));
|
|
}
|
|
}
|
|
}
|