Skip to content

Migration snapshots can carry an executionHash that does not match their execution section #30462

Open

Description

@wmadden-electric

What a maintainer sees. When the execution-default refs were renamed from table/column to entry/field, five example migration snapshots were regenerated with the new keys but kept their old executionHash. The upgrade instruction for that change tells users to do the same with their own snapshots under migrations/snapshots/<hash>/. Nothing fails today, because the snapshot loader re-hashes only the storage section. If the loader ever checks executionHash, those snapshots, and every user snapshot edited by the instruction, will fail to load.

Where. The example snapshots under examples/*/migrations/app/snapshots/ that carry an execution section; the snapshot loader in the migration tooling; step 2 of upgrade-instructions/pending/execution-ref-entry-field/app/instructions.md (and the extension copy).

Likely fix. Before anything starts verifying executionHash on snapshots, either recompute it when snapshots are loaded or rewritten, or give the upgrade instruction a step that recomputes it, and regenerate the example snapshots.

Where it came from. #30399.

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