docs(orm): close seven small gaps on the migration and CLI pages #8855
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 524 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #8855"
general
weight: 0.35
wmadden-electric
A rollback in production was described three ways on three pages, and none said what to do with the ref a pipeline migrates to. The rollback steps now say it:
A pipeline that runs plain
npx prisma db migrateneeds no ref: it applies migrations up to the contract you reverted.This pull request closes seven small items from the Prisma ORM 8 docs audit. Each is a few lines, so they travel together.
What changes for a reader
1. Rollback in production (
orm/migrations/rollbacks-and-recovery.mdx). Step 3 now says to point the pipeline's ref at the rollback and commit its file. Step 4 says what each form ofdb migrateapplies.2. Which migration to roll back from (same page).
--from <newest-migration-dir>was unclear once a history has two branches. The page now says to take the migration below the state thatmigration statuslabels@db, and shows that row.3. One edited migration, two error codes (
orm/migrations/applying-a-migration.mdx).migration checkreportsMIGRATION.CHECK_HASH_MISMATCH, whiledb migrateandmigration statusreportMIGRATION.CONTRACT_SPACE_VIOLATIONfor the same edit. The page now names both and gives the one fix.4. The table of contract references each command accepts moves from the concept page
orm/migrations/the-migration-graph.mdxtocli/migration-ref.mdx, becauseapps/docs/CLAUDE.mdputs reference material undercli/. The anchor#contract-reference-formsis the same, and the 15 links that pointed at it now point at the new page.5.
db updatesigns the database (cli/db-update.mdx). Other pages said so; the command's own page did not.6. Quickstart browser titles. The two "Create a new app" pages still had "Quickstart: ..." as
metaTitle.7.
prisma/prismais nowprisma/ormin thenpx skills addcommand onai/tools/skills.mdx, the GitHub star count URL, and one code comment. The star button's label now names the repository it links to.How it was checked
On
prisma8.0.0-rc.34 with@prisma/orm-postgres8.0.0-rc.24, in a scratch project against PostgreSQL 15:ops.jsongivesMIGRATION.CHECK_HASH_MISMATCH(exit 4) frommigration check, andMIGRATION.CONTRACT_SPACE_VIOLATION(exit 2) fromdb migrateandmigration status.migration ref set prod <rollback directory>writesmigrations/app/refs/prod.json, anddb migrate --to prodthen applies the rollback migration.db updatewrites the marker and advances thedbref.prisma/ormhas askills/prisma-8directory.Two cold reader rounds ran with the
docs-reader-reviewskill on the changed passages, and its three prose checks pass on every changed line.pnpm lint:linksandpnpm lint:versionspass. The second round's remaining marks are on text this pull request does not change.Not in this pull request
Audit item E17 (the Baselines paragraph) needed no change:
mainalready says what the nextmigration planwrites afterdb sign. Item E19, about 50 older reader marks on the migration pages, is a separate reader pass.Agent: gagarin-12
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Updated MongoDB and PostgreSQL quickstart titles to emphasize creating a new app.
Consolidated migration contract-reference guidance in the CLI documentation, including accepted formats and hash-prefix rules.
Clarified migration hash-mismatch errors, recovery and rollback steps, and how to identify the correct migration.
Updated migration command guidance and links, including how database updates record the matching contract.
Corrected the Prisma ORM skill installation fallback command.
Bug Fixes
GitHub star counts now reference the Prisma ORM repository, and ecosystem card labels name the repository displayed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->