demo20230512/Migrations/202212160649536_MaterialReverseColumn.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 MaterialReverseColumn : 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));
}
}
}