From 72d9512a8b86ee10decfa8c984038dbfe8385e1c Mon Sep 17 00:00:00 2001 From: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:38:17 -0400 Subject: [PATCH] Fix Db Migrations (#1503) (cherry picked from commit 5b21f40b010b0a5b7767dbae4f721972be16a4c0) --- .../Postgres/20241222203147_UpstreamMerge.cs | 12 ------------ .../Sqlite/20241222203134_UpstreamMerge.cs | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/Content.Server.Database/Migrations/Postgres/20241222203147_UpstreamMerge.cs b/Content.Server.Database/Migrations/Postgres/20241222203147_UpstreamMerge.cs index 029a62460b..0269f6dcdd 100644 --- a/Content.Server.Database/Migrations/Postgres/20241222203147_UpstreamMerge.cs +++ b/Content.Server.Database/Migrations/Postgres/20241222203147_UpstreamMerge.cs @@ -11,23 +11,11 @@ namespace Content.Server.Database.Migrations.Postgres protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.Sql("DROP TABLE IF EXISTS ProileLoadouts;"); - - migrationBuilder.AddForeignKey( - name: "FK_loadout_profile_profile_id", - table: "loadout", - column: "profile_id", - principalTable: "profile", - principalColumn: "profile_id", - onDelete: ReferentialAction.Cascade); } /// protected override void Down(MigrationBuilder migrationBuilder) { - migrationBuilder.DropForeignKey( - name: "FK_loadout_profile_profile_id", - table: "loadout"); - migrationBuilder.CreateTable( name: "ProfileLoadout", columns: table => new diff --git a/Content.Server.Database/Migrations/Sqlite/20241222203134_UpstreamMerge.cs b/Content.Server.Database/Migrations/Sqlite/20241222203134_UpstreamMerge.cs index 8b5d357376..bdda99b9c9 100644 --- a/Content.Server.Database/Migrations/Sqlite/20241222203134_UpstreamMerge.cs +++ b/Content.Server.Database/Migrations/Sqlite/20241222203134_UpstreamMerge.cs @@ -11,23 +11,11 @@ namespace Content.Server.Database.Migrations.Sqlite protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.Sql("DROP TABLE IF EXISTS ProileLoadouts;"); - - migrationBuilder.AddForeignKey( - name: "FK_loadout_profile_profile_id", - table: "loadout", - column: "profile_id", - principalTable: "profile", - principalColumn: "profile_id", - onDelete: ReferentialAction.Cascade); } /// protected override void Down(MigrationBuilder migrationBuilder) { - migrationBuilder.DropForeignKey( - name: "FK_loadout_profile_profile_id", - table: "loadout"); - migrationBuilder.CreateTable( name: "ProfileLoadout", columns: table => new