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