tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20180918020726_MYAddMinimumSecurity.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6
8{
12 public partial class MYAddMinimumSecurity : Migration
13 {
15 protected override void Up(MigrationBuilder migrationBuilder)
16 {
17 ArgumentNullException.ThrowIfNull(migrationBuilder);
18
19 migrationBuilder.AddColumn<int>(
20 name: "ApiValidationSecurityLevel",
21 table: "DreamMakerSettings",
22 nullable: false,
23 defaultValue: (int)DreamDaemonSecurity.Safe);
24
25 migrationBuilder.AddColumn<int>(
26 name: "MinimumSecurityLevel",
27 table: "CompileJobs",
28 nullable: false,
29 defaultValue: (int)DreamDaemonSecurity.Safe);
30 }
31
33 protected override void Down(MigrationBuilder migrationBuilder)
34 {
35 ArgumentNullException.ThrowIfNull(migrationBuilder);
36
37 migrationBuilder.DropColumn(
38 name: "ApiValidationSecurityLevel",
39 table: "DreamMakerSettings");
40
41 migrationBuilder.DropColumn(
42 name: "MinimumSecurityLevel",
43 table: "CompileJobs");
44 }
45 }
46}
Add the Api.Models.Internal.CompileJob.MinimumSecurityLevel and Api.Models.Internal....
DreamDaemonSecurity
DreamDaemon's security level.