fix: test_releases FK stability issue

This commit is contained in:
Sam Chau
2026-01-19 04:24:15 +10:30
parent 0883470f17
commit 2459fe407e
2 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -54,4 +54,10 @@ All schema changes will be documented in this file.
- Add quality profile testing tables
- test_entities: stores movies/series from TMDB for testing quality profiles
- test_releases: stores sample releases attached to test entities
- Supports languages, indexers, and flags as JSON arrays for release metadata
- Supports languages, indexers, and flags as JSON arrays for release metadata
## 19-1-26
- Fix test_releases FK stability issue
- Changed from test_entity_id (auto-generated) to composite FK (entity_type, entity_tmdb_id)
- Ensures releases remain correctly linked after database recompile from ops
- Updated index to use composite key