tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200422010115_MYAddCompileJobDMApiVersion.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.DropColumn(
18 name: "ServerCommandsJson",
19 table: "ReattachInformations");
20
21 migrationBuilder.AddColumn<int>(
22 name: "DMApiMajorVersion",
23 table: "CompileJobs",
24 nullable: true);
25
26 migrationBuilder.AddColumn<int>(
27 name: "DMApiMinorVersion",
28 table: "CompileJobs",
29 nullable: true);
30
31 migrationBuilder.AddColumn<int>(
32 name: "DMApiPatchVersion",
33 table: "CompileJobs",
34 nullable: true);
35 }
36
38 protected override void Down(MigrationBuilder migrationBuilder)
39 {
40 ArgumentNullException.ThrowIfNull(migrationBuilder);
41
42 migrationBuilder.DropColumn(
43 name: "DMApiMajorVersion",
44 table: "CompileJobs");
45
46 migrationBuilder.DropColumn(
47 name: "DMApiMinorVersion",
48 table: "CompileJobs");
49
50 migrationBuilder.DropColumn(
51 name: "DMApiPatchVersion",
52 table: "CompileJobs");
53
54 migrationBuilder.AddColumn<string>(
55 name: "ServerCommandsJson",
56 table: "ReattachInformations",
57 nullable: false);
58 }
59 }
60}
Add fields for the Models.CompileJob.DMApiVersion property for MYSQL.