mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Rescans reconcile rom_files in place since #3900, so file ids survive a rescan and no longer need routing around. Playlist and favorite entries reference rom_file_id directly instead of (rom_id, md5_hash). This drops the machinery the hash key required: soundtrack audio is no longer force-hashed during scans (which overrode NON_HASHABLE_PLATFORMS and SKIP_HASH_CALCULATION), soundtrack uploads no longer hash on write, adding an unhashed track no longer returns 400, and the min(file id) subquery that collapsed identical copies within a rom is gone. Two files with the same content are now two independently addressable tracks. A file that leaves the library takes its entries with it via the FK cascade, rather than leaving a dangling entry that resurrects if the content comes back. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>