feat(db): align movie state with canonical MediaState #85
Merged
naps62-yolo
merged 2 commits from 2026-08-22 23:21:10 +01:00
issue/73-movie-state into main
Labels
Clear labels
area/api
area/ci
area/compat
area/core
area/daemon
area/db
area/dl
area/indexer
area/infra
area/meta
area/parse
area/probe
area/subs
area/web
difficulty/easy
difficulty/hard
difficulty/moderate
difficulty/trivial
phase/1-skeleton
phase/2-logic
phase/3-sourcing
phase/4-movies
phase/5-ui
phase/6-tv
phase/7-people
phase/8-compat
phase/9-subtitles
type/bug
type/chore
type/feature
type/test
arr-api
CI and test harness
arr-compat
arr-core
arr-daemon
arr-db
arr-dl
arr-indexer
workspace and tooling
arr-meta
arr-parse
arr-probe
arr-subs crate: providers, extraction, translation, sync
web/
bounded, obvious approach, few files
subtle correctness or cross-cutting
multiple files, judgement, an interface to design
one file, mechanical, no design decisions
workspace, CI, config, database, empty API and SPA
parsing and policy engine, pure, no network
TMDB and Prowlarr, read-only
movies end to end
search, buckets, library views, queues
seasons, episodes, tracking, derived status
owner tags and notifications
Jellyseerr shim
build order: subtitles, DESIGN.md §15
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yolo/arr#85
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #73.
movies.stateusedmissing|grabbed|imported, predating arr-core's canonicalMediaStatevocabulary (missing|downloading|available) that series/episodes already follow.Migration
0007_movie_state_canonical.sqlrebuilds themoviestable with the newCHECKconstraint and renames existing rows in place (grabbed->downloading,imported->available). SQLite can't alter aCHECKconstraint in place, and the rebuild drops the old table, which would cascade-deletemovie_releasesthrough its FK -- the migration stashes those rows and restores them once the newmoviestable exists with the same ids. The two triggers0005defines onmoviesare recreated for the same reason (DROP TABLEdrops triggers with it).Updated the two places that wrote the old vocabulary (
arr-daemon's grab action and its test). Added a regression test that runs the pre-#73 migrations, inserts rows under the old vocabulary, then runs the rest and checks they land on the new names.Reviewed
6c1900be14137698bed33149234aa8cbc36d715d. No findings.\n\n