Existing DBs created before the schema dropped UNIQUE still have shows.tvdb_id / movies.tmdb_id UNIQUE, so enrichment matching two items to the same id threw 'UNIQUE constraint failed' repeatedly. enrichment_apply now catches the IntegrityError and retries without the id columns — keeps the existing (authoritative) id and still records match_status + metadata. Non-destructive (no table rebuild). Test simulates the legacy unique index. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| music_database.py | ||
| personalized_schema.py | ||
| video_database.py | ||
| video_schema.sql | ||