27 lines
1.4 KiB
C#
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));
|
|
}
|
|
}
|
|
}
|