mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Re-integrate the sigil title-id feature on top of upstream's scan reconciliation refactor and migration additions. Scan reconciliation: - _identify_rom now persists rom files via db_rom_handler.sync_rom_files instead of purge_rom_files + per-file add_rom_file. The obsolete RomFile copy-list (title_id/save_id/title_version) is removed; those fields now ride along through ROM_FILE_SCANNED_COLUMNS. - Add title_id, save_id, title_version to ROM_FILE_SCANNED_COLUMNS so sync_rom_files copies them onto reconciled rows. Without this the extracted ids/version silently drop to NULL on rescan. - Single-file embedding rename (renamed_rom_fs_name) preserved in both the new-entry and update paths of _identify_rom. Migrations renumbered to chain after the new upstream head: - 0102_sigil_title_ids -> 0104_sigil_title_ids (down: 0103_roms_facets_provider_ids) - 0103_sigil_title_version -> 0105_sigil_title_version (down: 0104_sigil_title_ids) Tests: - Reworked TestIdentifyRomPersistsFileTitleVersion to capture sync_rom_files and assert the scanned RomFile carries title_id and title_version; added a direct assertion that ROM_FILE_SCANNED_COLUMNS includes the sigil columns.