From 7011220d3bc925f8cc8e52db6ad537ae1a790ee2 Mon Sep 17 00:00:00 2001 From: RXWatcher <14085001+RXWatcher@users.noreply.github.com> Date: Sun, 24 May 2026 12:27:40 +0200 Subject: [PATCH] feat(audiobooks): migration 142 add audiobooks.enabled flag Server-settings row that gates the absorbed audiobooks feature. Defaults to 'false' so sub-plan 1 lands as a strict no-op; subsequent sub-plans branch on this flag and operators flip it to 'true' at cutover. Co-Authored-By: Claude Opus 4.7 (1M context) --- migrations/142_audiobooks_feature_flag.down.sql | 1 + migrations/142_audiobooks_feature_flag.up.sql | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 migrations/142_audiobooks_feature_flag.down.sql create mode 100644 migrations/142_audiobooks_feature_flag.up.sql diff --git a/migrations/142_audiobooks_feature_flag.down.sql b/migrations/142_audiobooks_feature_flag.down.sql new file mode 100644 index 00000000..0ad095b6 --- /dev/null +++ b/migrations/142_audiobooks_feature_flag.down.sql @@ -0,0 +1 @@ +DELETE FROM server_settings WHERE key = 'audiobooks.enabled'; diff --git a/migrations/142_audiobooks_feature_flag.up.sql b/migrations/142_audiobooks_feature_flag.up.sql new file mode 100644 index 00000000..03bb7b90 --- /dev/null +++ b/migrations/142_audiobooks_feature_flag.up.sql @@ -0,0 +1,6 @@ +-- Master kill-switch for the absorbed audiobooks feature. Defaults to +-- 'false' so landing migrations 139-142 is a no-op for users; operators +-- flip this to 'true' at cutover. + +INSERT INTO server_settings (key, value) VALUES ('audiobooks.enabled', 'false') +ON CONFLICT (key) DO NOTHING;