demo20230512/Migrations/202208050550242_addLifecycleAssmtColumns.cs

23 lines
894 B
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 addLifecycleAssmtColumns : DbMigration
{
public override void Up()
{
AddColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "category", c => c.String(maxLength:1));
AddColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "categorySubItem", c => c.String(maxLength:20));
AddColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "GHGinventoryItemNo", c => c.String(maxLength:5));
}
public override void Down()
{
DropColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "GHGinventoryItemNo");
DropColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "categorySubItem");
DropColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "category");
}
}
}