38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
namespace APT.Data.Migrations.Migrations
|
|||
|
|
{
|
|||
|
|
public partial class hmr2025112203 : Migration
|
|||
|
|
{
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropForeignKey(
|
|||
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FM_USER_USER_ID",
|
|||
|
|
table: "T_FO_FIRE_JOB_WB_USER");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddForeignKey(
|
|||
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_OG_RELATED_USER_USER_ID",
|
|||
|
|
table: "T_FO_FIRE_JOB_WB_USER",
|
|||
|
|
column: "USER_ID",
|
|||
|
|
principalTable: "T_OG_RELATED_USER",
|
|||
|
|
principalColumn: "ID",
|
|||
|
|
onDelete: ReferentialAction.Restrict);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropForeignKey(
|
|||
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_OG_RELATED_USER_USER_ID",
|
|||
|
|
table: "T_FO_FIRE_JOB_WB_USER");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddForeignKey(
|
|||
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FM_USER_USER_ID",
|
|||
|
|
table: "T_FO_FIRE_JOB_WB_USER",
|
|||
|
|
column: "USER_ID",
|
|||
|
|
principalTable: "T_FM_USER",
|
|||
|
|
principalColumn: "ID",
|
|||
|
|
onDelete: ReferentialAction.Restrict);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|