Files
minstrel/internal/db/migrations/0093_library_settings.up.sql
T
bvandeusenandClaude Opus 5.5 edcb3a57ef
release / govulncheck (push) Successful in 15s
release / web (push) Successful in 1m20s
release / go (push) Failing after 1m37s
release / integration (push) Failing after 4m56s
release / android (push) Successful in 5m1s
release / Build signed APK (releases and dev) (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
feat: the library's folders are set in Admin › Library, and changing a folder moves its tracks with it, keeping their plays, likes and playlists (#6129)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 20:37:03 -04:00

12 lines
531 B
SQL

-- The library's folders, set in Settings (#6129). Until someone saves them
-- there, scan_paths is NULL and MINSTREL_LIBRARY_SCAN_PATHS names the folders,
-- as it always has; from the first save the row is what the server reads.
CREATE TABLE library_settings (
id boolean PRIMARY KEY DEFAULT true,
scan_paths text[],
updated_at timestamptz NOT NULL DEFAULT now(),
CONSTRAINT library_settings_singleton CHECK (id = true)
);
INSERT INTO library_settings (id) VALUES (true) ON CONFLICT (id) DO NOTHING;