tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200512181801_MSRemoveSoftColumns.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
10 public partial class MSRemoveSoftColumns : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.DropColumn(
18 name: "AccessToken",
19 table: "DreamDaemonSettings");
20
21 migrationBuilder.DropColumn(
22 name: "ProcessId",
23 table: "DreamDaemonSettings");
24
25 migrationBuilder.DropColumn(
26 name: "SoftRestart",
27 table: "DreamDaemonSettings");
28
29 migrationBuilder.DropColumn(
30 name: "SoftShutdown",
31 table: "DreamDaemonSettings");
32 }
33
35 protected override void Down(MigrationBuilder migrationBuilder)
36 {
37 ArgumentNullException.ThrowIfNull(migrationBuilder);
38
39 migrationBuilder.AddColumn<string>(
40 name: "AccessToken",
41 table: "DreamDaemonSettings",
42 type: "nvarchar(max)",
43 nullable: true);
44
45 migrationBuilder.AddColumn<int>(
46 name: "ProcessId",
47 table: "DreamDaemonSettings",
48 type: "int",
49 nullable: true);
50
51 migrationBuilder.AddColumn<bool>(
52 name: "SoftRestart",
53 table: "DreamDaemonSettings",
54 type: "bit",
55 nullable: false,
56 defaultValue: false);
57
58 migrationBuilder.AddColumn<bool>(
59 name: "SoftShutdown",
60 table: "DreamDaemonSettings",
61 type: "bit",
62 nullable: false,
63 defaultValue: false);
64 }
65 }
66}