generated from VLADIMIR/template
up
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS game_screen_plans (
|
||||
game_id INTEGER PRIMARY KEY REFERENCES games(id) ON DELETE CASCADE,
|
||||
steps JSONB NOT NULL DEFAULT '[]'::jsonb,
|
||||
current_step INTEGER NOT NULL DEFAULT 0,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE IF EXISTS game_screen_plans;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- +goose Up
|
||||
ALTER TABLE screen_sessions
|
||||
ADD COLUMN IF NOT EXISTS text TEXT NOT NULL DEFAULT '';
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE screen_sessions DROP COLUMN IF EXISTS text;
|
||||
Reference in New Issue
Block a user