mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Fix Db Migrations (#1503)
(cherry picked from commit 5b21f40b010b0a5b7767dbae4f721972be16a4c0)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_loadout_profile_profile_id",
|
||||
table: "loadout");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ProfileLoadout",
|
||||
columns: table => new
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_loadout_profile_profile_id",
|
||||
table: "loadout");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ProfileLoadout",
|
||||
columns: table => new
|
||||
|
||||
Reference in New Issue
Block a user