tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200423052142_MSKillJsonsAddDMApiVersion.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 migrationBuilder.AddColumn<string>(
42 name: "ChatChannelsJson",
43 table: "ReattachInformations",
44 type: "nvarchar(max)",
45 nullable: false,
46 defaultValue: "chat_channels.tgs.json");
47
48 migrationBuilder.AddColumn<string>(
49 name: "ChatCommandsJson",
50 table: "ReattachInformations",
51 type: "nvarchar(max)",
52 nullable: false,
53 defaultValue: "chat_commands.tgs.json");
54 }
55 }
56}
Drop chat reattach information and add Models.ReattachInformationBase.LaunchSecurityLevel for MSSQL.