tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200705163547_MYAllowNullDMApi.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
10 public partial class MYAllowNullDMApi : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.AddColumn<bool>(
18 name: "RequireDMApiValidation",
19 table: "DreamMakerSettings",
20 nullable: false,
21 defaultValue: true);
22
23 migrationBuilder.AlterColumn<int>(
24 name: "MinimumSecurityLevel",
25 table: "CompileJobs",
26 nullable: true,
27 oldClrType: typeof(int),
28 oldType: "int");
29 }
30
32 protected override void Down(MigrationBuilder migrationBuilder)
33 {
34 ArgumentNullException.ThrowIfNull(migrationBuilder);
35
36 migrationBuilder.DropColumn(
37 name: "RequireDMApiValidation",
38 table: "DreamMakerSettings");
39
40 migrationBuilder.AlterColumn<int>(
41 name: "MinimumSecurityLevel",
42 table: "CompileJobs",
43 type: "int",
44 nullable: false,
45 oldClrType: typeof(int),
46 oldNullable: true);
47 }
48 }
49}
Update models for making the DMAPI optional for MYSQL.