From ce5dee39ae5b793493e33061bd8cc07aa02d5762 Mon Sep 17 00:00:00 2001 From: P0nk Date: Sat, 14 Sep 2024 17:48:20 +0200 Subject: [PATCH] Reorder migration scripts - move acc+chr creation earlier --- .../postgresql/{V0.8__account.sql => V0.2__account.sql} | 0 .../postgresql/{V0.9__character.sql => V0.3__character.sql} | 0 .../db/migration/postgresql/{V0.2__note.sql => V0.4__note.sql} | 0 .../migration/postgresql/{V0.3__maker.sql => V0.5__maker.sql} | 0 .../{V0.4__monster_drop.sql => V0.6__monster_drop.sql} | 0 ...5__global_monster_drop.sql => V0.7__global_monster_drop.sql} | 0 .../db/migration/postgresql/{V0.6__shop.sql => V0.8__shop.sql} | 0 .../{V0.7__monster_card.sql => V0.9__monster_card.sql} | 2 +- 8 files changed, 1 insertion(+), 1 deletion(-) rename src/main/resources/db/migration/postgresql/{V0.8__account.sql => V0.2__account.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.9__character.sql => V0.3__character.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.2__note.sql => V0.4__note.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.3__maker.sql => V0.5__maker.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.4__monster_drop.sql => V0.6__monster_drop.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.5__global_monster_drop.sql => V0.7__global_monster_drop.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.6__shop.sql => V0.8__shop.sql} (100%) rename src/main/resources/db/migration/postgresql/{V0.7__monster_card.sql => V0.9__monster_card.sql} (94%) diff --git a/src/main/resources/db/migration/postgresql/V0.8__account.sql b/src/main/resources/db/migration/postgresql/V0.2__account.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.8__account.sql rename to src/main/resources/db/migration/postgresql/V0.2__account.sql diff --git a/src/main/resources/db/migration/postgresql/V0.9__character.sql b/src/main/resources/db/migration/postgresql/V0.3__character.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.9__character.sql rename to src/main/resources/db/migration/postgresql/V0.3__character.sql diff --git a/src/main/resources/db/migration/postgresql/V0.2__note.sql b/src/main/resources/db/migration/postgresql/V0.4__note.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.2__note.sql rename to src/main/resources/db/migration/postgresql/V0.4__note.sql diff --git a/src/main/resources/db/migration/postgresql/V0.3__maker.sql b/src/main/resources/db/migration/postgresql/V0.5__maker.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.3__maker.sql rename to src/main/resources/db/migration/postgresql/V0.5__maker.sql diff --git a/src/main/resources/db/migration/postgresql/V0.4__monster_drop.sql b/src/main/resources/db/migration/postgresql/V0.6__monster_drop.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.4__monster_drop.sql rename to src/main/resources/db/migration/postgresql/V0.6__monster_drop.sql diff --git a/src/main/resources/db/migration/postgresql/V0.5__global_monster_drop.sql b/src/main/resources/db/migration/postgresql/V0.7__global_monster_drop.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.5__global_monster_drop.sql rename to src/main/resources/db/migration/postgresql/V0.7__global_monster_drop.sql diff --git a/src/main/resources/db/migration/postgresql/V0.6__shop.sql b/src/main/resources/db/migration/postgresql/V0.8__shop.sql similarity index 100% rename from src/main/resources/db/migration/postgresql/V0.6__shop.sql rename to src/main/resources/db/migration/postgresql/V0.8__shop.sql diff --git a/src/main/resources/db/migration/postgresql/V0.7__monster_card.sql b/src/main/resources/db/migration/postgresql/V0.9__monster_card.sql similarity index 94% rename from src/main/resources/db/migration/postgresql/V0.7__monster_card.sql rename to src/main/resources/db/migration/postgresql/V0.9__monster_card.sql index ed9b23f479..b9813c5817 100644 --- a/src/main/resources/db/migration/postgresql/V0.7__monster_card.sql +++ b/src/main/resources/db/migration/postgresql/V0.9__monster_card.sql @@ -5,7 +5,7 @@ CREATE TABLE monster_card level smallint NOT NULL, PRIMARY KEY(chr_id, card_id) /* TODO once chr is moved to postgres: - CONSTRAINT fk_monster_card_chr FOREIGN KEY (chr_id) REFERENCES character(id); + CONSTRAINT fk_monster_card_chr FOREIGN KEY (chr_id) REFERENCES chr(id); */ ); GRANT SELECT, INSERT, UPDATE ON TABLE monster_card TO ${server-username};