SQLite setup and initial migrations #4

Closed
opened 2026-08-22 18:22:38 +01:00 by naps62-yolo · 0 comments
Owner

sqlx with SQLite and compile-time-checked queries (DESIGN.md §10).

Migrations for the movie side of the model in §4: Root, Policy, Movie,
MediaFile, Release, Grab, Blacklist, Owner, TitleOwner. Series,
seasons and episodes are a later issue — do not create them speculatively.

  • WAL mode, foreign keys on, sensible indices on the columns the reconcile loop
    scans (wanted, last_searched_at, state).
  • Seed the two movie roots and their policies from §5.1.
  • A just db-reset recipe.

Acceptance: migrations apply from empty, and cargo sqlx prepare output is
committed so CI does not need a live database.


Depends on: #1

Labels: phase/1-skeleton, area/db, difficulty/moderate, type/feature

`sqlx` with SQLite and compile-time-checked queries (`DESIGN.md` §10). Migrations for the movie side of the model in §4: `Root`, `Policy`, `Movie`, `MediaFile`, `Release`, `Grab`, `Blacklist`, `Owner`, `TitleOwner`. Series, seasons and episodes are a later issue — do not create them speculatively. - WAL mode, foreign keys on, sensible indices on the columns the reconcile loop scans (`wanted`, `last_searched_at`, `state`). - Seed the two movie roots and their policies from §5.1. - A `just db-reset` recipe. Acceptance: migrations apply from empty, and `cargo sqlx prepare` output is committed so CI does not need a live database. --- **Depends on:** #1 Labels: `phase/1-skeleton`, `area/db`, `difficulty/moderate`, `type/feature`
naps62-yolo added the area/dbdifficulty/moderatephase/1-skeletontype/feature labels 2026-08-22 18:22:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yolo/arr#4