tgstation-server
6.16.0
The /tg/station 13 server suite
Toggle main menu visibility
Main Page
Features
API
Architecture
Packages
Package List
Package Members
All
[
a
b
c
d
e
f
h
i
j
m
o
p
r
s
t
w
Functions
Variables
Enumerations
a
b
c
d
e
f
h
i
j
m
o
p
r
s
t
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerations
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Events
Files
File List
File Members
All
Functions
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Database
Migrations
20240202202121_SLAddMinidumpsOption.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
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
}
13
protected
override
void
Up
(MigrationBuilder migrationBuilder) {
…
}
26
28
protected
override
void
Down
(MigrationBuilder migrationBuilder)
29
{
30
ArgumentNullException.ThrowIfNull(migrationBuilder);
31
32
migrationBuilder.DropColumn(
33
name:
"Minidumps"
,
34
table:
"DreamDaemonSettings"
);
35
}
28
protected
override
void
Down
(MigrationBuilder migrationBuilder) {
…
}
36
}
10
public
partial class
SLAddMinidumpsOption
:
Migration
{
…
};
37
}
Migration
Tgstation.Server.Host.Database.Migrations.SLAddMinidumpsOption
Definition
20240202202121_SLAddMinidumpsOption.cs:11
Tgstation.Server.Host.Database.Migrations.SLAddMinidumpsOption.Down
override void Down(MigrationBuilder migrationBuilder)
Definition
20240202202121_SLAddMinidumpsOption.cs:28
Tgstation.Server.Host.Database.Migrations.SLAddMinidumpsOption.Up
override void Up(MigrationBuilder migrationBuilder)
Definition
20240202202121_SLAddMinidumpsOption.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