33 lines
1.8 KiB
C#
33 lines
1.8 KiB
C#
|
namespace Weee.Migrations
|
|||
|
{
|
|||
|
using System;
|
|||
|
using System.Data.Entity.Migrations;
|
|||
|
|
|||
|
public partial class addRiskAssmtMaterialNo : DbMigration
|
|||
|
{
|
|||
|
public override void Up()
|
|||
|
{
|
|||
|
AddColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "MaterialNo", c => c.String(maxLength: 450));
|
|||
|
AddColumn("dbo.LCARiskAssmtSurveyForm_MaterialC3Emission", "MaterialNo", c => c.String(maxLength: 450));
|
|||
|
AlterColumn("dbo.LCARiskAssmtSurveyForm_ItemDelivery", "MaterialNo", c => c.String(maxLength: 450));
|
|||
|
AlterColumn("dbo.LCARiskAssmtSurveyForm_ItemPurchase", "MaterialNo", c => c.String(maxLength: 450));
|
|||
|
CreateIndex("dbo.LCARiskAssmtSurveyForm_ItemDelivery", "MaterialNo");
|
|||
|
CreateIndex("dbo.LCARiskAssmtSurveyForm_ItemPurchase", "MaterialNo");
|
|||
|
CreateIndex("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "MaterialNo");
|
|||
|
CreateIndex("dbo.LCARiskAssmtSurveyForm_MaterialC3Emission", "MaterialNo");
|
|||
|
}
|
|||
|
|
|||
|
public override void Down()
|
|||
|
{
|
|||
|
DropIndex("dbo.LCARiskAssmtSurveyForm_MaterialC3Emission", new[] { "MaterialNo" });
|
|||
|
DropIndex("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", new[] { "MaterialNo" });
|
|||
|
DropIndex("dbo.LCARiskAssmtSurveyForm_ItemPurchase", new[] { "MaterialNo" });
|
|||
|
DropIndex("dbo.LCARiskAssmtSurveyForm_ItemDelivery", new[] { "MaterialNo" });
|
|||
|
AlterColumn("dbo.LCARiskAssmtSurveyForm_ItemDelivery", "MaterialNo", c => c.String());
|
|||
|
AlterColumn("dbo.LCARiskAssmtSurveyForm_ItemPurchase", "MaterialNo", c => c.String());
|
|||
|
DropColumn("dbo.LCARiskAssmtSurveyForm_MaterialC3Emission", "MaterialNo");
|
|||
|
DropColumn("dbo.LCARiskAssmtSurveyForm_LifecycleAssmt", "MaterialNo");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|