Skip to content

The prisma-8-demo migration-graph fixtures fail to load their predecessor snapshots #30463

Open

Description

@wmadden-electric

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions