demo20230512/Migrations/202212160206326_MaterialAddColumns.cs

25 lines
1.1 KiB
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class MaterialAddColumns : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReceivingAmount", 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", "ReturnAmount", c => c.Decimal(nullable: false, precision: 24, scale: 12));
AddColumn("dbo.ProductLCAProductSurveyForm_Materials", "Depiction", c => c.String());
}
public override void Down()
{
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "Depiction");
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReturnAmount");
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ActualUsage");
DropColumn("dbo.ProductLCAProductSurveyForm_Materials", "ReceivingAmount");
}
}
}