mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
The unique constraint on titles is (tmdbId, type), meaning the same numeric TMDB ID can exist as both a movie and TV show. Several places were keying maps by tmdbId alone, which caused UNIQUE constraint violations when an UPDATE inadvertently changed a row's type, and silently dropped titles when both types existed for the same ID. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>