tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20240202202121_SLAddMinidumpsOption.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6
8{
10 public partial class SLAddMinidumpsOption : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 // This was originally minidumps on Linux and full dumps on Windows
18 var defaultValue = !new PlatformIdentifier().IsWindows;
19 migrationBuilder.AddColumn<bool>(
20 name: "Minidumps",
21 table: "DreamDaemonSettings",
22 type: "INTEGER",
23 nullable: false,
24 defaultValue: defaultValue);
25 }
26
28 protected override void Down(MigrationBuilder migrationBuilder)
29 {
30 ArgumentNullException.ThrowIfNull(migrationBuilder);
31
32 migrationBuilder.DropColumn(
33 name: "Minidumps",
34 table: "DreamDaemonSettings");
35 }
36 }
37}
bool IsWindows
If the current platform is a Windows platform.