mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Tabify existing migrations
This commit is contained in:
Generated
+450
-450
File diff suppressed because it is too large
Load Diff
+21
-21
@@ -13,33 +13,33 @@ namespace Tgstation.Server.Host.Migrations
|
||||
/// </summary>
|
||||
/// <param name="migrationBuilder">The <see cref="MigrationBuilder"/> to use</param>
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
}
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unapplies the migration
|
||||
/// </summary>
|
||||
/// <param name="migrationBuilder">The <see cref="MigrationBuilder"/> to use</param>
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings");
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs");
|
||||
}
|
||||
}
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+476
-476
File diff suppressed because it is too large
Load Diff
+21
-21
@@ -13,33 +13,33 @@ namespace Tgstation.Server.Host.Migrations
|
||||
/// </summary>
|
||||
/// <param name="migrationBuilder">The <see cref="MigrationBuilder"/> to use</param>
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
}
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs",
|
||||
nullable: false,
|
||||
defaultValue: (int)DreamDaemonSecurity.Safe);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unapplies the migration
|
||||
/// </summary>
|
||||
/// <param name="migrationBuilder">The <see cref="MigrationBuilder"/> to use</param>
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings");
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ApiValidationSecurityLevel",
|
||||
table: "DreamMakerSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs");
|
||||
}
|
||||
}
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinimumSecurityLevel",
|
||||
table: "CompileJobs");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user