prisma-next: move migration contracts into the snapshots/ store layout#749
prisma-next: move migration contracts into the snapshots/ store layout#749wmadden wants to merge 1 commit into
Conversation
|
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. 💤 Files selected but had no reviewable changes (2)
⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for this @wmadden! I see that Prisma Next 0.16 has just been published - should we update that in this PR, or would you suggest doing it separately? |
In progress - do not merge
Adopts prisma-next's content-addressed contract-snapshot layout for
packages/prisma-next/migrations, ahead of upgrading@prisma-next/*to the release that ships it (prisma/prisma-next#1018).Only
install_eql_v3_bundlecarries a contract; itsend-contract.{json,d.ts}move byte-for-byte intomigrations/snapshots/<hex>/contract.{json,d.ts}(<hex>= the storage hash,sha256:stripped).migration.json,migration.ts,ops.json, andrefs/head.jsonare untouched — the migrations don't import the contract and the runtime-recomputed EQLmigrationHashis unaffected.@prisma-next0.14→0.16 upgrade: the new tooling reads the store, and on current 0.14 tooling the old sibling files are still expected.migration applyis runner-independent either way (reads onlymigration.json+ops.json).Rationale: prisma-next ADR 239. (prisma-next's one-shot migrator can't run this tree unmodified — the EQL bundle recomputes its hash from runtime ops, tripping the migrator's committed-ops integrity check — so this was done by hand.)