diff --git a/evening_detective_server b/evening_detective_server new file mode 100755 index 0000000..f3ee534 Binary files /dev/null and b/evening_detective_server differ diff --git a/migrations/20260910140000_create_game_map_items.sql b/migrations/20260910140000_create_game_map_items.sql index c78837f..a13344c 100644 --- a/migrations/20260910140000_create_game_map_items.sql +++ b/migrations/20260910140000_create_game_map_items.sql @@ -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, kind TEXT NOT NULL, item_id INTEGER NOT NULL, @@ -7,3 +8,6 @@ CREATE TABLE game_map_items ( hidden BOOLEAN NOT NULL DEFAULT FALSE, PRIMARY KEY (game_id, kind, item_id) ); + +-- +goose Down +DROP TABLE IF EXISTS game_map_items;