tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Database
Migrations
20210211173316_MYTruncateInstanceNames.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Microsoft.EntityFrameworkCore.Migrations;
4
5
namespace
Tgstation.Server.Host.Database.Migrations
6
{
10
public
partial class
MYTruncateInstanceNames
:
Migration
11
{
13
protected
override
void
Up
(MigrationBuilder migrationBuilder)
14
{
15
ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17
migrationBuilder.AlterColumn<
string
>(
18
name:
"Name"
,
19
table:
"Instances"
,
20
maxLength: 100,
21
nullable:
false
,
22
oldClrType: typeof(
string
),
23
oldType:
"longtext CHARACTER SET utf8mb4"
,
24
oldMaxLength: 10000);
25
}
26
28
protected
override
void
Down
(MigrationBuilder migrationBuilder)
29
{
30
ArgumentNullException.ThrowIfNull(migrationBuilder);
31
32
migrationBuilder.AlterColumn<
string
>(
33
name:
"Name"
,
34
table:
"Instances"
,
35
type:
"longtext CHARACTER SET utf8mb4"
,
36
maxLength: 10000,
37
nullable:
false
,
38
oldClrType: typeof(
string
),
39
oldMaxLength: 100);
40
}
41
}
42
}
Migration
Tgstation.Server.Host.Database.Migrations.MYTruncateInstanceNames
Reduces the index name column size for MYSQL.
Definition
20210211173316_MYTruncateInstanceNames.cs:11
Tgstation.Server.Host.Database.Migrations.MYTruncateInstanceNames.Down
override void Down(MigrationBuilder migrationBuilder)
Definition
20210211173316_MYTruncateInstanceNames.cs:28
Tgstation.Server.Host.Database.Migrations.MYTruncateInstanceNames.Up
override void Up(MigrationBuilder migrationBuilder)
Definition
20210211173316_MYTruncateInstanceNames.cs:13
Tgstation.Server.Host.Database.Migrations
Definition
20180906135553_MSInitialCreate.cs:7
Generated by
1.9.8