mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
Rescans deleted and re-inserted every rom_files row, so file ids churned on each scan and anything keyed on them (track metadata, persisted soundtrack covers) was orphaned. Rows are now matched by path first, then by content hash so a file renamed or moved inside the ROM keeps its id, mirroring the ROM-level reassociation. Only changed columns are written, vanished files are deleted, and archive_members is carried over (the hand-written copy dropped it). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>