demo20230512/Migrations/202206231451424_SimaproMaxLen300.cs

37 lines
2.6 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 SimaproMaxLen300 : DbMigration
{
public override void Up()
{
AlterColumn("dbo.SimaproParameters", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.NonYearlyParameterTypes", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.YearlyParameterAreas", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.YearlyParameterTypes", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
AlterColumn("dbo.SimaproParameterTypes", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
AlterColumn("dbo.SimaproParameterCategories", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.PCRs", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmtItem", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.PublicMessages", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
//AlterColumn("dbo.PublicReferenceFiles", "DisplayNameTW", c => c.String(nullable: false, maxLength: 300));
}
public override void Down()
{
//AlterColumn("dbo.PublicReferenceFiles", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
//AlterColumn("dbo.PublicMessages", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
//AlterColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmtItem", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
//AlterColumn("dbo.PCRs", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
AlterColumn("dbo.SimaproParameterCategories", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
AlterColumn("dbo.SimaproParameterTypes", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
//AlterColumn("dbo.YearlyParameterTypes", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
//AlterColumn("dbo.YearlyParameterAreas", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
//AlterColumn("dbo.NonYearlyParameterTypes", "DisplayNameTW", c => c.String(nullable: false, maxLength: 200));
AlterColumn("dbo.SimaproParameters", "DisplayNameTW", c => c.String(nullable: false));
}
}
}