Files
silo-server/migrations/sql/20260608183000_enable_audiobookshelf_compat_default.sql
5855cebe75 fix(audiobooks): complete playback and catalog parity (#96)
* fix(audiobooks): complete playback and catalog parity

* fix(web): allow podcast continue targets

* fix(audiobooks): use folder sidecar covers during scan

* fix(audiobooks): read nullable poster paths during cover scan

* feat(home): split continue listening sections

* fix(catalog): coalesce nullable media artwork fields

* feat(playback): surface audiobook sessions in admin activity

* fix(audiobooks): address playback review feedback

---------

Co-authored-by: rxwatcher <rxwatcher@users.noreply.github.com>
Co-authored-by: Quick <31828688+Quick104@users.noreply.github.com>
2026-06-08 21:55:35 -04:00

29 lines
838 B
SQL

-- +goose Up
-- +goose StatementBegin
-- The original ABS compatibility setting copied the stale audiobooks.enabled
-- kill-switch, which defaulted to false. Docker deployments already publish
-- :13378, so keep the listener enabled unless an operator disables it later.
UPDATE server_settings
SET value = 'true'
WHERE key = 'audiobookshelf_compat.enabled'
AND trim(value) = '';
INSERT INTO server_settings (key, value)
SELECT 'audiobookshelf_compat.enabled', 'true'
WHERE NOT EXISTS (
SELECT 1
FROM server_settings
WHERE key = 'audiobookshelf_compat.enabled'
);
DELETE FROM server_settings
WHERE key = 'audiobooks.enabled';
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
INSERT INTO server_settings (key, value)
VALUES ('audiobooks.enabled', 'false')
ON CONFLICT (key) DO NOTHING;
-- +goose StatementEnd