mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-25 09:03:10 +01:00
fix(migrations): remove BEGIN/END from 0010_campaign.sql
Migration runner wraps each file in its own transaction via db.Begin(). Having an explicit BEGIN/END inside caused 'unexpected transaction status idle'. Other migrations use no transaction wrapper.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
BEGIN;
|
-- Campaign / Event Tent system tables.
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.campaigns (
|
CREATE TABLE IF NOT EXISTS public.campaigns (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
min_hr INTEGER,
|
min_hr INTEGER,
|
||||||
@@ -65,5 +64,3 @@ CREATE TABLE IF NOT EXISTS public.campaign_quest (
|
|||||||
character_id INTEGER REFERENCES public.characters(id) ON DELETE CASCADE,
|
character_id INTEGER REFERENCES public.characters(id) ON DELETE CASCADE,
|
||||||
PRIMARY KEY (campaign_id, character_id)
|
PRIMARY KEY (campaign_id, character_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
END;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user