You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The prisma-8-demo migration-graph fixtures fail to load their predecessor snapshots #30463
What a user sees. The migration-graph fixtures under examples/prisma-8-demo/fixtures/ render with the offline commands (migration graph, list, show, check), but migrate or migration status against a database fails before any SQL runs with Contract validation failed (PN-CLI-4003): a predecessor contract snapshot does not deserialize. The 46 committed snapshots were emitted with an older contract shape; among other things their execution refs have no namespace. The root gotchas.md entry for this still stands.
Where.examples/prisma-8-demo/fixtures/*/migrations/snapshots/*/contract.json. The execution-ref rename in #30399 renamed their keys for consistency only and did not make them loadable.
Likely fix. Regenerate the fixtures' predecessor snapshots with the current CLI (contract emit and migration plan for each graph node), or add a script that rebuilds them, and add a test that loads every snapshot so the drift cannot return unnoticed. Then remove the gotchas.md entry.
Where it came from. Recorded during #30399; the symptom is described in the root gotchas.md.
Activity