From 8ada277dba2e3c0b71d1692b4b5cdb86bddf262f Mon Sep 17 00:00:00 2001 From: legonzaur Date: Mon, 24 Apr 2023 21:45:48 +0200 Subject: [PATCH] fix errored offhand weapon migration --- src/db/migrations/2023-04-24-01 Offhand weapons patch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/migrations/2023-04-24-01 Offhand weapons patch.ts b/src/db/migrations/2023-04-24-01 Offhand weapons patch.ts index 162c4b0..a4da0b9 100644 --- a/src/db/migrations/2023-04-24-01 Offhand weapons patch.ts +++ b/src/db/migrations/2023-04-24-01 Offhand weapons patch.ts @@ -10,8 +10,8 @@ const pgClient = new Client({ export async function up(db: Kysely): Promise { await pgClient.connect() - await pgClient.query(`ALTER TABLE kill RENAME attacker_offhand_weapon_2 TO victim_offhand_weapon_2_mods;`) - await pgClient.query(`ALTER TABLE kill RENAME attacker_offhand_weapon_1 TO victim_offhand_weapon_1_mods;`) + await pgClient.query(`ALTER TABLE kill RENAME attacker_offhand_weapon_2 TO attacker_offhand_weapon_2_mods;`) + await pgClient.query(`ALTER TABLE kill RENAME attacker_offhand_weapon_1 TO attacker_offhand_weapon_1_mods;`) await pgClient.query(`ALTER TABLE kill RENAME victim_offhand_weapon_2 TO victim_offhand_weapon_2_mods;`) await pgClient.query(`ALTER TABLE kill RENAME victim_offhand_weapon_1 TO victim_offhand_weapon_1_mods;`)