← Back to Pull requests

docs(guides): deployment and integration guides match rc.34 #8885

Closed
unknown closed this pull request without merging on Nov 20, 2026 14:05 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 11:35 UTC
Author

The Docker guide applied its first migration like this:

npx prisma db migrate

Its "Next steps" then told the reader to change the schema and plan again. That plan failed:

MIGRATION.PLAN_ORIGIN_UNKNOWN

Plain db migrate does not record which contract the development database is at, so the next migration plan has nowhere to start from. Step 2.3 now runs db migrate --advance-ref db, as the Vercel, Turborepo and GitHub Actions guides already do, and the guide says why the container itself keeps running plain db migrate.

This is one of 21 findings on the deployment and integration guides from a full audit of the Prisma ORM 8 docs against prisma 8.0.0-rc.34 and @prisma/orm-postgres 8.0.0-rc.24. This pull request fixes them. Every flow on the changed pages was run again at those versions against PostgreSQL 17, and every printed output is from those runs.

What changed

  • Docker. As above. The "Regenerate the lockfile" step is gone: npm ci works in the image with a lockfile written on macOS, on arm64 and amd64. The image size is corrected (637 MB on node:24-alpine).

  • Bun and Turborepo. The schema-change step pasted an older User model, which changed the type of two columns as well as adding bio. It is now the model orm init writes, with the one new line. Bun's minimum is 1.3. A missing DATABASE_URL fails with DRIVER.NOT_CONNECTED.

  • Turborepo. A new db:deploy script (plain db migrate) is for CI and production; the page had said --advance-ref db runs "in development and in CI alike". The page mentions npm create prisma@latest -- --template turborepo.

  • Printed output. Cloudflare Workers, Bun, AI SDK and Clerk showed output as JSON fragments the CLI no longer prints. A repeated db init prints Database already matches contract, not Applied 0 operation(s).

  • db.ts imports ./contract.d.js on four pages, as the generated file does.

  • Deploy an existing app on Compute. The page named P1001, a Prisma ORM 7 code. At the versions the page pins, a client created with the placeholder URL throws RUNTIME.BINDING_INVALID.

  • pgfence. The page said Prisma ORM 8 migrations have no SQL output. Each migration's ops.json holds its SQL, and prisma migration show prints it.

  • VS Code. The page mentioned only Prisma ORM 6 and 7. It now says how a Prisma ORM 8 contract is recognized.

  • Supabase to Prisma Postgres. The opening box now says the guide does not cover a project whose contract uses @prisma/orm-extension-supabase, and why.

  • Skills reminder. Six guides explain the reminder that commands print until prisma init has run in the package, and the INIT.CONFIG_KEPT warning that init prints there.

  • Fourteen sentences that described how a guide was tested are removed.
  • Thirteen pages in this area document Prisma ORM 7 and say so; they are unchanged.

    How it was checked

    An implementer verified each finding before changing a page. A separate reviewer then ran the Docker guide from its first step to its last, including the image build, and the changed steps of the Turborepo and Bun guides, in two rounds; all of its findings are fixed. pnpm lint:links and pnpm lint:versions pass.

    One finding could not be reproduced and its text is unchanged: the pnpm guide's note about pnpm 12.0 to 12.4.0.

    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 deployment and integration guides with current initialization, migration-planning, and migration-status examples, including contract-space operations and database references.
    Clarified agent-skills reminders, synchronization, and configuration warnings, including when warnings do not prevent commands from running.
    Revised setup guidance for Bun, Prisma ORM versions, generated contract files, and database connection errors.
    * Clarified ORM 8 migration output and limitations when switching Supabase projects.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 524 lines (+393 / -131) across 6 files Reviewer: wmadden-electric Review duration: 150m
    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
    0.71
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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 #8885"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.0% (HIGH) · Higher = larger blast radius
    71.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28% · Safe to merge
    28%
    Repository