soulsync/database
Broque Thomas 2564e6bf4f Fix deep scan wiping track enrichment data and not updating file paths
INSERT OR REPLACE on existing tracks was deleting the entire row and
reinserting only 9 columns, nuking spotify_track_id, deezer_id, isrc,
bpm, musicbrainz IDs, and ~15 other enrichment columns every scan.

Now uses UPDATE for existing tracks (preserves all enrichment) and
INSERT only for new tracks. Also ensures file_path gets updated from
the media server on each scan, fixing stale paths for users whose
files were moved/reorganized.
2026-03-18 10:38:06 -07:00
..
__init__.py basic db structure 2025-08-05 22:43:04 -07:00
music_database.py Fix deep scan wiping track enrichment data and not updating file paths 2026-03-18 10:38:06 -07:00
music_library.db basic db structure 2025-08-05 22:43:04 -07:00