Restore startup compatibility with native migration history #18

Merged
conrad merged 1 commit from codex/restore-native-migrations into main 2026-09-06 16:43:36 -04:00
Owner

Production exits at startup because its SQLite migration history includes m20260906_000046_eink_sync_receipts, absent from main. Recover the original e-reader receipts, native authorization and device authorization migration definitions from the native checkout, preserving their exact names and SQL. Register them alongside the archive migration; do not edit production data or migration history. This adds schema compatibility only, without adding native authentication endpoints.

Validation: all 74 migration tests pass. A regression fixture creates the native deployment schema, inserts an authorization request, then applies and reapplies the main migrator while checking that the row survives and foreign keys remain valid. Formatting and diff checks pass.

The preceding reader release passed full CI, but could not boot against this already-upgraded database. This repair will be deployed directly using the same production Dockerfile and Fly configuration for incident recovery; the redundant automatic deployment will be cancelled.

Production exits at startup because its SQLite migration history includes m20260906_000046_eink_sync_receipts, absent from main. Recover the original e-reader receipts, native authorization and device authorization migration definitions from the native checkout, preserving their exact names and SQL. Register them alongside the archive migration; do not edit production data or migration history. This adds schema compatibility only, without adding native authentication endpoints. Validation: all 74 migration tests pass. A regression fixture creates the native deployment schema, inserts an authorization request, then applies and reapplies the main migrator while checking that the row survives and foreign keys remain valid. Formatting and diff checks pass. The preceding reader release passed full CI, but could not boot against this already-upgraded database. This repair will be deployed directly using the same production Dockerfile and Fly configuration for incident recovery; the redundant automatic deployment will be cancelled.
Recognize native migrations already applied to production
Some checks failed
deploy-fly / validate (push) Has been cancelled
deploy-fly / deploy (push) Has been cancelled
161ed119b6
conrad merged commit 161ed119b6 into main 2026-09-06 16:43:36 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
conrad/media!18
No description provided.