13 protected override void Up(MigrationBuilder migrationBuilder)
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
17 migrationBuilder.DropForeignKey(
18 name:
"FK_ReattachInformations_CompileJobs_CompileJobId",
19 table:
"ReattachInformations");
21 migrationBuilder.AlterColumn<
long>(
23 table:
"ReattachInformations",
25 oldClrType: typeof(
long),
28 migrationBuilder.AddForeignKey(
29 name:
"FK_ReattachInformations_CompileJobs_CompileJobId",
30 table:
"ReattachInformations",
31 column:
"CompileJobId",
32 principalTable:
"CompileJobs",
33 principalColumn:
"Id",
34 onDelete: ReferentialAction.Cascade);
38 protected override void Down(MigrationBuilder migrationBuilder)
40 ArgumentNullException.ThrowIfNull(migrationBuilder);
42 migrationBuilder.DropForeignKey(
43 name:
"FK_ReattachInformations_CompileJobs_CompileJobId",
44 table:
"ReattachInformations");
46 migrationBuilder.AlterColumn<
long>(
48 table:
"ReattachInformations",
50 oldClrType: typeof(
long));
52 migrationBuilder.AddForeignKey(
53 name:
"FK_ReattachInformations_CompileJobs_CompileJobId",
54 table:
"ReattachInformations",
55 column:
"CompileJobId",
56 principalTable:
"CompileJobs",
57 principalColumn:
"Id",
58 onDelete: ReferentialAction.Restrict);