2026-09-15 12:36:48 +07:00
|
|
|
-- FlowSight schema v2: holder attribution + user scoping for history reads.
|
2026-09-15 15:03:07 +07:00
|
|
|
-- Idempotent: safe to re-run on DBs created before schema_migrations existed.
|
2026-09-15 12:36:48 +07:00
|
|
|
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 '';
|