using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Diligent.WebAPI.Data.Migrations { public partial class RestrictDelete : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_SelectionProcesses_AspNetUsers_SchedulerId", table: "SelectionProcesses"); migrationBuilder.AddForeignKey( name: "FK_SelectionProcesses_AspNetUsers_SchedulerId", table: "SelectionProcesses", column: "SchedulerId", principalTable: "AspNetUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_SelectionProcesses_AspNetUsers_SchedulerId", table: "SelectionProcesses"); migrationBuilder.AddForeignKey( name: "FK_SelectionProcesses_AspNetUsers_SchedulerId", table: "SelectionProcesses", column: "SchedulerId", principalTable: "AspNetUsers", principalColumn: "Id"); } } }