demo20230512/Migrations/202301100638012_ProductLCAAddColumns.cs

27 lines
1.3 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 ProductLCAAddColumns : DbMigration
{
public override void Up()
{
AddColumn("dbo.ProductLCA", "HasProductLifeCycle_MaterialsObtained", c => c.Boolean(nullable: false, defaultValue: true));
AddColumn("dbo.ProductLCA", "HasProductLifeCycle_Manufacturing", c => c.Boolean(nullable: false, defaultValue: true));
AddColumn("dbo.ProductLCA", "HasProductLifeCycle_DeliverySales", c => c.Boolean(nullable: false, defaultValue: true));
AddColumn("dbo.ProductLCA", "HasProductLifeCycle_ProductUse", c => c.Boolean(nullable: false, defaultValue: true));
AddColumn("dbo.ProductLCA", "HasProductLifeCycle_Abandonment", c => c.Boolean(nullable: false, defaultValue: true));
}
public override void Down()
{
DropColumn("dbo.ProductLCA", "HasProductLifeCycle_Abandonmente");
DropColumn("dbo.ProductLCA", "HasProductLifeCycle_ProductUse");
DropColumn("dbo.ProductLCA", "HasProductLifeCycle_DeliverySales");
DropColumn("dbo.ProductLCA", "HasProductLifeCycle_Manufacturing");
DropColumn("dbo.ProductLCA", "HasProductLifeCycle_MaterialsObtained");
}
}
}