mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 02:47:29 +02:00
When PID.Artist spec changes, existing artist IDs differ from newly-computed ones. Without remapping, all annotations (starred, ratings, play counts) become orphaned. This change builds an artistIDMap during phase 1 and reassigns annotations on persist, mirroring the existing albumIDMap flow. The migration logic is gated on the previous spec being non-empty and different from the current spec, so the default "name" spec (byte-identical to the historical hardcoded artistID) triggers no remapping on upgrade. |
||
|---|---|---|
| .. | ||
| legacy_ids.go | ||
| map_mediafile.go | ||
| map_mediafile_test.go | ||
| map_participants.go | ||
| map_participants_test.go | ||
| metadata.go | ||
| metadata_suite_test.go | ||
| metadata_test.go | ||
| persistent_ids.go | ||
| persistent_ids_test.go | ||