mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
The list covered firmware and the music tables but not saves.user_id, states.user_id, screenshots.user_id, rom_file_user.user_id, memory_cards.platform_id or streaming_container_adoptions.decided_by_user_id, so a user delete still sequentially scanned the three largest per-user tables on PostgreSQL, which is the case the pass set out to fix. Add a test that recomputes the rule (a single-column foreign key whose column leads no index, primary key or unique constraint) from the model metadata, so the next model foreign key cannot be forgotten silently. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>