summaryrefslogtreecommitdiff
path: root/makima/migrations/20260305000000_add_user_settings.sql
diff options
context:
space:
mode:
Diffstat (limited to 'makima/migrations/20260305000000_add_user_settings.sql')
-rw-r--r--makima/migrations/20260305000000_add_user_settings.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/makima/migrations/20260305000000_add_user_settings.sql b/makima/migrations/20260305000000_add_user_settings.sql
new file mode 100644
index 0000000..0b84b1c
--- /dev/null
+++ b/makima/migrations/20260305000000_add_user_settings.sql
@@ -0,0 +1,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.';