tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200423052709_MYKillJsonsAddDMApiVersion.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: "ChatChannelsJson",
19 table: "ReattachInformations");
20
21 migrationBuilder.DropColumn(
22 name: "ChatCommandsJson",
23 table: "ReattachInformations");
24
25 migrationBuilder.AddColumn<int>(
26 name: "LaunchSecurityLevel",
27 table: "ReattachInformations",
28 nullable: false,
29 defaultValue: 1);
30 }
31
33 protected override void Down(MigrationBuilder migrationBuilder)
34 {
35 ArgumentNullException.ThrowIfNull(migrationBuilder);
36
37 migrationBuilder.DropColumn(
38 name: "LaunchSecurityLevel",
39 table: "ReattachInformations");
40
41 // No default values b/c lol mysql
42 migrationBuilder.AddColumn<string>(
43 name: "ChatChannelsJson",
44 table: "ReattachInformations",
45 type: "longtext CHARACTER SET utf8mb4",
46 nullable: false);
47
48 migrationBuilder.AddColumn<string>(
49 name: "ChatCommandsJson",
50 table: "ReattachInformations",
51 type: "longtext CHARACTER SET utf8mb4",
52 nullable: false);
53 }
54 }
55}
Drop chat reattach information and add Models.ReattachInformationBase.LaunchSecurityLevel for MYSQL.