demo20230512/Migrations/202212210306528_TransportAlterColumns.cs

21 lines
678 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 TransportAlterColumns : DbMigration
{
public override void Up()
{
RenameColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterID", "NonYearlyParameterID");
AddColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterID", c => c.Int());
}
public override void Down()
{
DropColumn("dbo.ProductLCAFabSurveyForm_Transports", "ParameterID");
RenameColumn("dbo.ProductLCAFabSurveyForm_Transports", "NonYearlyParameterID", "ParameterID");
}
}
}