-- 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;