mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
When more than one missing entry shares the same CRC/MD5/SHA1 (e.g. duplicate content stored twice), limit(1) returned an arbitrary row, so reassociation could move user data onto the wrong game nondeterministically. Fetch up to two matches and reassociate only when exactly one exists; otherwise fall back to creating a new entry. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>