summaryrefslogblamecommitdiff
path: root/makima/migrations/20260305000000_add_user_settings.sql
blob: 0b84b1c50053faaf037dbb37f9e9a8da1973f0be (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                     
-- Add user-level settings columns.
--
-- For now we only add a per-user feature flag controlling whether the user
-- sees the new "document mode" UI. Defaults to FALSE so existing users are
-- unaffected; the frontend gates on this flag.

ALTER TABLE users
    ADD COLUMN IF NOT EXISTS document_mode_enabled BOOLEAN NOT NULL DEFAULT FALSE;

COMMENT ON COLUMN users.document_mode_enabled IS
    'Per-user feature flag: when true, the frontend shows the new document-mode UI.';