using Microsoft.EntityFrameworkCore.Migrations; namespace APT.Data.Migrations.Migrations { public partial class wyw2025120101 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateIndex( name: "IX_T_SE_NEW_USER_DETAIL_NEXT_DEPARTMENT_ID", table: "T_SE_NEW_USER_DETAIL", column: "NEXT_DEPARTMENT_ID"); migrationBuilder.AddForeignKey( name: "FK_T_SE_NEW_USER_DETAIL_T_FM_DEPARTMENT_NEXT_DEPARTMENT_ID", table: "T_SE_NEW_USER_DETAIL", column: "NEXT_DEPARTMENT_ID", principalTable: "T_FM_DEPARTMENT", principalColumn: "ID", onDelete: ReferentialAction.Restrict); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_T_SE_NEW_USER_DETAIL_T_FM_DEPARTMENT_NEXT_DEPARTMENT_ID", table: "T_SE_NEW_USER_DETAIL"); migrationBuilder.DropIndex( name: "IX_T_SE_NEW_USER_DETAIL_NEXT_DEPARTMENT_ID", table: "T_SE_NEW_USER_DETAIL"); } } }