docs(guides): framework guides plan a migration for schema changes, and match create-prisma 0.14.8 #8888
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.69) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 461 lines diff across 5 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.367
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #8888"
general
weight: 0.35
ankur-arch
Five framework guides told readers to change the schema of a scaffolded app like this:
That changes the local database and writes no migration. But
npm create prismacommits a first migration when it scaffolds, and a deploy applies only committed migrations. After those two commands, the project is in a state the next step cannot leave:npm run dev:composer, which runs the same code a deploy runs, stops withMIGRATION_PATH_NOT_FOUND. So the schema change would never reach the hosted database.Every guide whose scaffold ships migrations now has a "Change the schema" section with the flow that works:
and then commit
migrations/, includingrefs/db.json. A reader who applies migrations by restartingnpm run dev:composer, with no database inDATABASE_URL, sets thedbref by hand afterwards withnpx prisma migration ref set db <new migration directory name>, becausedev:composerdoes not write it. The section also covers a checkout wheredb:initnever ran, and recovery after adb:update.This is one of 21 findings on the framework and runtime guides from a full audit of the Prisma ORM 8 docs against
prisma8.0.0-rc.34 andcreate-prisma0.14.8. This pull request fixes them.What changed
create-prismapage.db:initoutput. Ten pages showed a"summary": ...line, which is the--jsonfield. They now show what the terminal prints, and the real message for a second run (Database already matches contract).db.tsand the sample output were from an older version. They are now whatorm initwrites at rc.34.output: "standalone".../prisma.config.ts.dev:composerand a deploy.Not changed
The SvelteKit guide stays a local-only guide.
create-prisma0.14.8 generates deploy files for SvelteKit and accepts--deployfor it, and the app runs in the local Compute emulator, but no real deploy was run, so the page makes no claim about deploying.How it was checked
An implementer verified each finding before changing a page, by scaffolding with
create-prisma0.14.8 and running the steps against PostgreSQL. A separate reviewer then followed one guide exactly as written for both kinds of reader, in two rounds; all of its findings are fixed.pnpm lint:links,pnpm lint:versionsandpnpm lint:spellcheckpass.Not verified: the
npm run buildstep of the Next.js guide. The Next.js version the template pins (16.4.2) stopped the build in the test environment with a security error.Agent: gagarin-12
🤖 Generated with Claude Code