docs(guides): the MongoDB upgrade runs Prisma 8 beside Prisma 6, and the upgrade and switch guides match rc.24 #8883
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 582 lines diff across 7 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.381
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8883"
general
weight: 0.35
wmadden-electric
The MongoDB upgrade guide began with this command:
It installs Prisma 8 over the Prisma 6 CLI. The same guide then asks the reader to keep the Prisma 6 app deployable, but from that point the Prisma 6 command fails:
The guide is now ordered so that Prisma 8 runs beside Prisma 6 from the first step.
orm initwithout flags stops withCLI.INIT_PRISMA6_SCHEMA_FOUNDand prints the side-by-side setup; the guide follows it: aprisma6alias for the Prisma 6 CLI,prisma6Schema('prisma/schema.prisma')so Prisma 8 reads the existing schema, thencontract emitanddb sign. Only after the client calls are ported does the schema move to a Prisma 8 contract file.This is one of 25 findings on the upgrade and switch guides from a full audit of the Prisma ORM 8 docs against
prisma8.0.0-rc.34 and the ORM packages at 8.0.0-rc.24. This pull request fixes all of them.What changed
Int"still works". In Prisma 8,Intmeans a 32-bit integer, and its validator refuses the 64-bit values Prisma 6 stored. The guide now mapsInttoInt64Number.PSL.PRISMA6_MONGO_errors a valid Prisma 6 schema can hit when Prisma 8 reads it, what to change for each, and what that change does to the running Prisma 6 app.MIGRATION.PRECHECK_FAILED, printing the query that finds the documents that do not fit. Both guides now describe that, and thecheckDocuments: falseoverride.npm uninstall prisma6 @prisma/clientalso removes theprismacommand, because the alias declares a command of the same name. The step now runsnpm installafterwards and checksnpx prisma --version.schema.prismathroughprisma7Schema(...).pg_searchis added to the extensions that need a pack (@prisma/orm-extension-paradedb).migration statusafterdb signprintsNo migrations found, notUp to date. The one-commandorm initpath writes tosrc/prisma.from-sql-orms,from-drizzleandfrom-mongoosewere re-run on real TypeORM, Drizzle and Mongoose apps. Printed output is from the current versions,db.tsimports./contract.d.js, and an optional field can be left out ofcreate.CLI.CONFIG_SECTION_INVALID, notCONFIG.FILE_NOT_FOUND.guides/upgrade-prisma-orm/postgresql.mdxkeeps its pinned versions, which are the ones the Console's Compute setup installs; onlypg_searchis added there. One page outside the guides changes so it does not contradict them:orm/coming-from-prisma-orm-7.mdx.The MongoDB guide no longer recommends the
prisma-mongodb-upgradeagent skill, because the skill inprisma/skillsstill teaches the old first command. Updating the skill is separate work.How it was checked
An implementer verified each finding before changing a page. A separate reviewer then followed the MongoDB guide from its first step to its last on a Prisma 6.19 app and a MongoDB 8.0 replica set, doing only what the page says, in two rounds. The Prisma 6 app kept reading and writing throughout. All of the reviewer's findings are fixed.
pnpm lint:linksandpnpm lint:versionspass.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
Expanded Prisma ORM migration guides with staged upgrade paths for MongoDB and PostgreSQL, including schema compatibility, incremental client migration, database verification, and cutover steps.
Updated setup and configuration guidance for
orm init, generated contract imports, TypeScript module settings, and Prisma dependencies.Clarified MongoDB requirements and behavior, including transaction prerequisites, optional fields, query constraints, and prechecks before applying validators.
Updated PostgreSQL extension guidance to include
pg_searchand refined examples for signing, migration status, and query output.<!-- end of auto-generated comment: release notes by coderabbit.ai -->