Files
flowsight/backend/internal/store/migrations/0002_scope.sql
T
asepharyana 9a441c71a6
CI / go test + web typecheck (push) Canceled after 0s
CI / build + deploy (Nix) — flowsight (push) Canceled after 0s
fix: tolerate already-applied migrations, heal poisoned prod DB on boot
2026-09-15 15:03:07 +07:00

6 lines
367 B
SQL

-- FlowSight schema v2: holder attribution + user scoping for history reads.
-- Idempotent: safe to re-run on DBs created before schema_migrations existed.
ALTER TABLE filings ADD COLUMN holder_name TEXT NOT NULL DEFAULT '';
ALTER TABLE routine_runs ADD COLUMN user_key TEXT NOT NULL DEFAULT '';
ALTER TABLE alert_events ADD COLUMN user_key TEXT NOT NULL DEFAULT '';