mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-28 10:32:55 +01:00
merge guild schema
This commit is contained in:
@@ -17,4 +17,24 @@ CREATE TABLE IF NOT EXISTS public.guild_alliances
|
|||||||
sub2_id int
|
sub2_id int
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS public.guild_adventures
|
||||||
|
(
|
||||||
|
id serial NOT NULL PRIMARY KEY,
|
||||||
|
guild_id int NOT NULL,
|
||||||
|
destination int NOT NULL,
|
||||||
|
charge int NOT NULL DEFAULT 0,
|
||||||
|
depart int NOT NULL,
|
||||||
|
return int NOT NULL,
|
||||||
|
collected_by text NOT NULL DEFAULT ''
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS public.guild_meals
|
||||||
|
(
|
||||||
|
id serial NOT NULL PRIMARY KEY,
|
||||||
|
guild_id int NOT NULL,
|
||||||
|
meal_id int NOT NULL,
|
||||||
|
level int NOT NULL,
|
||||||
|
expires int NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
END;
|
END;
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
BEGIN;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.guild_adventures
|
|
||||||
(
|
|
||||||
id serial NOT NULL PRIMARY KEY,
|
|
||||||
guild_id int NOT NULL,
|
|
||||||
destination int NOT NULL,
|
|
||||||
charge int NOT NULL DEFAULT 0,
|
|
||||||
depart int NOT NULL,
|
|
||||||
return int NOT NULL,
|
|
||||||
collected_by text NOT NULL DEFAULT ''
|
|
||||||
);
|
|
||||||
|
|
||||||
END;
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
BEGIN;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.guild_meals
|
|
||||||
(
|
|
||||||
id serial NOT NULL PRIMARY KEY,
|
|
||||||
guild_id int NOT NULL,
|
|
||||||
meal_id int NOT NULL,
|
|
||||||
level int NOT NULL,
|
|
||||||
expires int NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
END;
|
|
||||||
Reference in New Issue
Block a user