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;