generated from VLADIMIR/template
fix
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -1,4 +1,5 @@
|
|||||||
CREATE TABLE game_map_items (
|
-- +goose Up
|
||||||
|
CREATE TABLE IF NOT EXISTS game_map_items (
|
||||||
game_id INTEGER NOT NULL REFERENCES games(id) ON DELETE CASCADE,
|
game_id INTEGER NOT NULL REFERENCES games(id) ON DELETE CASCADE,
|
||||||
kind TEXT NOT NULL,
|
kind TEXT NOT NULL,
|
||||||
item_id INTEGER NOT NULL,
|
item_id INTEGER NOT NULL,
|
||||||
@@ -7,3 +8,6 @@ CREATE TABLE game_map_items (
|
|||||||
hidden BOOLEAN NOT NULL DEFAULT FALSE,
|
hidden BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
PRIMARY KEY (game_id, kind, item_id)
|
PRIMARY KEY (game_id, kind, item_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- +goose Down
|
||||||
|
DROP TABLE IF EXISTS game_map_items;
|
||||||
|
|||||||
Reference in New Issue
Block a user