docs(docs): contract references after prisma/orm#30475 - #8349
Draft
wmadden-electric wants to merge 10 commits into
Draft
wmadden-electric wants to merge 10 commits into
wmadden-electric wants to merge 10 commits into
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
… step Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
The same line changes as #8342, so the version check passes here and the two pull requests merge in either order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…cli-gaps-c600ba # Conflicts: # apps/docs/content/docs/guides/frameworks/solid-start.mdx
prisma/orm#30475 makes migration status accept @contract and @db for --from and --to, and makes db migrate --to accept @contract and @db with and without --show. db update --to now refuses the @ names with MIGRATION.REF_WRONG_GRAMMAR. Update the table of accepted forms on The migration graph and the option rows on the migration status, db migrate, and db update pages to match. Checked against the pull request's head, 20615a96f0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
4 of 5 tasks
wmadden-electric
added a commit
that referenced
this pull request
Sep 30, 2026
Section E is in review as #8348, the error reference command names as prisma/orm#30527, and the docs change prisma/orm#30475 needs as draft #8349. The slice's plan, the facts run on rc.19, and the four reviews are kept beside its spec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Contributor
🍈 Lychee Link Check Report76 links: ✅ All links are working!Full Statistics Table
|
The blog preview failed two seconds after it started, and this branch changes nothing under apps/blog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Base automatically changed from
claude/orm-migration-cli-gaps-c600ba
to
main
September 30, 2026 15:18
…-refs-30475 Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The table "Contract references each command accepts" in
apps/docs/content/docs/orm/migrations/the-migration-graph.mdx, before:migration status --from,--to<dir>^, or@emptydb migrate --to<dir>^db migrate --show --to<dir>^,@contract, or@emptydb migrate --show --from<dir>^,@contract,@db, or@emptyAfter:
migration status --from,--to<dir>^,@contract,@db, or@emptydb migrate --to<dir>^,@contract, or@dbdb migrate --show --from,--to<dir>^,@contract,@db, or@emptyThe two
db migrate --showrows now list the same forms, so they are one row. The other rows do not change.Do not merge this until a published
prismarelease contains prisma/orm#30475. Today's release rejects or mishandles these forms, so the new rows would be wrong.This pull request is stacked on #8348, which adds the table. Its base is #8348's branch. When #8348 merges, change the base to
main.What changes
prisma/orm#30475 changes which contract references three commands accept:
migration status --fromand--toaccept@contractand@db.@dbneeds a database connection, even with--from.db migrate --toaccepts@contractand@db, with and without--show.db update --torefuses@contract,@db, and@emptywithMIGRATION.REF_WRONG_GRAMMAR. Before,@emptyand@dbcrashed withCLI.UNEXPECTED.The pages change to match:
orm/migrations/the-migration-graph.mdx: the three table rows above.cli/migration-status.mdx: the--torow lists@contractand@db. The--fromrow and the paragraph under "Reading the result" say that@dbneeds a database. The "Contract references" subsection defines@contractand@db.cli/db-migrate.mdx: the--torow lists@contractand@db, and@emptywith--showonly.cli/db-update.mdx: the--torow says it refuses the three@names, and that leaving out--toupdates to the contract incontract.json.How this was checked
Every cell was run on the pull request's head, prisma/orm
20615a96f0, with the workspace CLI (packages/1-framework/3-tooling/cli/dist/bin.mjs) and PostgreSQL 15. No cell comes from tests alone. The project had two migrations: a baseline, then one that adds a column. The database was at the baseline and the emitted contract was one migration ahead.@contract@db@empty./path(3 forms)migration status --toMIGRATION.REF_NOT_FOUNDmigration status --fromCONFIG.DB_CONNECTION_REQUIREDwith no databaseMIGRATION.REF_NOT_FOUNDdb migrate --toMIGRATION.REF_NOT_FOUNDdb migrate --show --toMIGRATION.REF_NOT_FOUNDdb update --to, with and without--dry-runMIGRATION.REF_WRONG_GRAMMARMIGRATION.REF_WRONG_GRAMMARMIGRATION.REF_WRONG_GRAMMARMIGRATION.REF_NOT_FOUNDdb migrate --to @emptyis not listed. The help text lists it, but no run succeeds: on an empty database it fails withMIGRATION.RUNNER_FAILED, and on any other database withMIGRATION.PATH_UNREACHABLE.db migrate --to @dbon a database with no marker fails withMIGRATION.RUNNER_FAILEDin the same way. On a database with a marker it works.Re-check on the release
When a
prismarelease contains prisma/orm#30475, run these in a scratch project and PostgreSQL before marking this ready. Set up two migrations (baseline to H1, then H1 to H2), emit the contract at H2, pointprisma.config.tsat a database at H1, and make a second config with nodb.connection.If
db migrate --to @emptysucceeds on the release, add@emptyto thedb migrate --torow.Checks run on the changed pages:
check-plain.sh,check-staccato.py,check-ai-signs.sh,fumadocs-mdx,pnpm lint:links, andcspell. All pass.Agent: columbo-92
🤖 Generated with Claude Code