add screen mode

This commit is contained in:
2026-09-10 11:40:20 +07:00
parent b8a9545b52
commit d4a6d84bc7
4 changed files with 65 additions and 10 deletions
@@ -0,0 +1,11 @@
-- +goose Up
ALTER TABLE screen_sessions
ADD COLUMN IF NOT EXISTS mode INTEGER NOT NULL DEFAULT 1,
ADD COLUMN IF NOT EXISTS state_version BIGINT NOT NULL DEFAULT 1,
ADD COLUMN IF NOT EXISTS position_ms BIGINT NOT NULL DEFAULT 0;
-- +goose Down
ALTER TABLE screen_sessions
DROP COLUMN IF EXISTS position_ms,
DROP COLUMN IF EXISTS state_version,
DROP COLUMN IF EXISTS mode;