mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-31 23:47:47 +01:00
Merge remote-tracking branch 'origin/master' into pr5949
# Conflicts: # cmd/wire_gen.go
This commit is contained in:
commit
bd6a3fb16e
58 changed files with 1732 additions and 543 deletions
18
db/migrations/20260929221042_add_library_pid_columns.sql
Normal file
18
db/migrations/20260929221042_add_library_pid_columns.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
alter table library add column pid_album varchar default '' not null;
|
||||
alter table library add column pid_track varchar default '' not null;
|
||||
alter table library add column scanned_pid_album varchar default '' not null;
|
||||
alter table library add column scanned_pid_track varchar default '' not null;
|
||||
|
||||
-- Every library was scanned with the global PID config, so seed it as their scanned config.
|
||||
-- This way the upgrade does not trigger a full rescan.
|
||||
update library set
|
||||
scanned_pid_album = coalesce((select value from property where id = 'PIDAlbum'), ''),
|
||||
scanned_pid_track = coalesce((select value from property where id = 'PIDTrack'), '');
|
||||
|
||||
delete from property where id in ('PIDAlbum', 'PIDTrack');
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
SELECT 1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue