soulsync/database
BoulderBadgeDad 78874313cc fix(video): move idx_movies_collection to _POST_INDEXES (broke DB init)
The new index on movies.tmdb_collection_id was in video_schema.sql, which executescript runs
BEFORE _ensure_columns adds the column on existing DBs — so 'CREATE INDEX ... ON
movies(tmdb_collection_id)' failed with 'no such column' and the whole video DB init aborted
(500s on every /api/video/* call). Moved the index to _POST_INDEXES (runs after the ALTERs),
matching the pattern the code comments already prescribe. The CREATE TABLE columns stay (fresh
DBs) + the ALTER migration stays (existing DBs); only the index moved.
2026-06-22 23:34:51 -07:00
..
__init__.py basic db structure 2025-08-05 22:43:04 -07:00
music_database.py M3U export: resolve paths via one bulk read instead of a per-artist search loop (fixes 'Export M3U hangs forever' under active enrichment/scan DB writes) 2026-06-13 08:55:46 -07:00
personalized_schema.py Personalized pipeline: auto-refresh stale snapshots after watchlist scan 2026-05-15 20:53:03 -07:00
video_database.py fix(video): move idx_movies_collection to _POST_INDEXES (broke DB init) 2026-06-22 23:34:51 -07:00
video_schema.sql fix(video): move idx_movies_collection to _POST_INDEXES (broke DB init) 2026-06-22 23:34:51 -07:00