tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20240907172259_SLAddDMApiValidationMode.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
8 public partial class SLAddDMApiValidationMode : Migration
9 {
11 protected override void Up(MigrationBuilder migrationBuilder)
12 {
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
14
15 migrationBuilder.RenameColumn(
16 name: "RequireDMApiValidation",
17 table: "DreamMakerSettings",
18 newName: "DMApiValidationMode");
19 }
20
22 protected override void Down(MigrationBuilder migrationBuilder)
23 {
24 ArgumentNullException.ThrowIfNull(migrationBuilder);
25
26 migrationBuilder.RenameColumn(
27 name: "DMApiValidationMode",
28 table: "DreamMakerSettings",
29 newName: "RequireDMApiValidation");
30
31 migrationBuilder.Sql("UPDATE DreamMakerSettings SET RequireDMApiValidation = 0 WHERE RequireDMApiValidation = 2");
32 }
33 }
34}