tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Database
Migrations
20240202202106_PGAddMinidumpsOption.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Microsoft.EntityFrameworkCore.Migrations;
4
5
using
Tgstation.Server.Host.System
;
6
7
namespace
Tgstation.Server.Host.Database.Migrations
8
{
10
public
partial class
PGAddMinidumpsOption
:
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:
"boolean"
,
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
}
Migration
Tgstation.Server.Host.Database.Migrations.PGAddMinidumpsOption
Definition
20240202202106_PGAddMinidumpsOption.cs:11
Tgstation.Server.Host.Database.Migrations.PGAddMinidumpsOption.Down
override void Down(MigrationBuilder migrationBuilder)
Definition
20240202202106_PGAddMinidumpsOption.cs:28
Tgstation.Server.Host.Database.Migrations.PGAddMinidumpsOption.Up
override void Up(MigrationBuilder migrationBuilder)
Definition
20240202202106_PGAddMinidumpsOption.cs:13
Tgstation.Server.Host.System.PlatformIdentifier
Definition
PlatformIdentifier.cs:9
Tgstation.Server.Host.System.PlatformIdentifier.IsWindows
bool IsWindows
If the current platform is a Windows platform.
Definition
PlatformIdentifier.cs:12
Tgstation.Server.Host.Database.Migrations
Definition
20180906135553_MSInitialCreate.cs:7
Tgstation.Server.Host.System
Definition
AssemblyInformationProvider.cs:9
Generated by
1.9.8