tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230403050623_MSAddReattachInfoInitialCompileJob.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.AddColumn<long>(
18 name: "InitialCompileJobId",
19 table: "ReattachInformations",
20 type: "bigint",
21 nullable: true);
22
23 migrationBuilder.CreateIndex(
24 name: "IX_ReattachInformations_InitialCompileJobId",
25 table: "ReattachInformations",
26 column: "InitialCompileJobId");
27
28 migrationBuilder.AddForeignKey(
29 name: "FK_ReattachInformations_CompileJobs_InitialCompileJobId",
30 table: "ReattachInformations",
31 column: "InitialCompileJobId",
32 principalTable: "CompileJobs",
33 principalColumn: "Id");
34 }
35
37 protected override void Down(MigrationBuilder migrationBuilder)
38 {
39 ArgumentNullException.ThrowIfNull(migrationBuilder);
40
41 migrationBuilder.DropForeignKey(
42 name: "FK_ReattachInformations_CompileJobs_InitialCompileJobId",
43 table: "ReattachInformations");
44
45 migrationBuilder.DropIndex(
46 name: "IX_ReattachInformations_InitialCompileJobId",
47 table: "ReattachInformations");
48
49 migrationBuilder.DropColumn(
50 name: "InitialCompileJobId",
51 table: "ReattachInformations");
52 }
53 }
54}