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

21 lines
730 B
C#

namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class updateLCA : DbMigration
{
public override void Up()
{
DropForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.OrganizationLCA");
AddForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.LCAs", "ID", cascadeDelete: true);
}
public override void Down()
{
DropForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.LCAs");
AddForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.OrganizationLCA", "ID");
}
}
}