demo20230512/Migrations/202302020251205_updateReplyRequestColumns.cs
2023-05-12 10:20:28 +08:00

27 lines
1.4 KiB
C#

namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class updateReplyRequestColumns : DbMigration
{
public override void Up()
{
AlterColumn("dbo.ProductLCAReplyRequests", "replyMode", c => c.Int(nullable:true));
AlterColumn("dbo.ProductLCAReplyRequests", "KgCO2eUnit", c => c.String(nullable:true));
AlterColumn("dbo.ProductLCAReplyRequests", "FunctionUnit", c => c.String(nullable: true));
AlterColumn("dbo.ProductLCAReplyRequests", "ReportFile", c => c.String(unicode: true, nullable: true));
AlterColumn("dbo.ProductLCAReplyRequests", "ReferenceFile", c => c.String(unicode: true, nullable: true));
}
public override void Down()
{
AlterColumn("dbo.ProductLCAReplyRequests", "FunctionUnit", c => c.String(nullable: false));
AlterColumn("dbo.ProductLCAReplyRequests", "KgCO2eUnit", c => c.String(nullable: false));
AlterColumn("dbo.ProductLCAReplyRequests", "replyMode", c => c.Int(nullable: false));
AlterColumn("dbo.ProductLCAReplyRequests", "ReportFile", c => c.String(unicode: false, maxLength: 999, nullable: true));
AlterColumn("dbo.ProductLCAReplyRequests", "ReferenceFile", c => c.String(unicode: false, maxLength: 999, nullable: true));
}
}
}