← Back to Pull requests

docs(docs): update the Prisma ORM 8 pages for 8.0.0-rc.20 #8576

Closed
unknown closed this pull request without merging on Oct 23, 2026 05:31 UTC
View on GitHub
unknown unknown commented on Oct 22, 2026 20:08 UTC
Author

This updates the Prisma ORM 8 pages for @prisma/orm-postgres and @prisma/orm-mongo 8.0.0-rc.20 and the prisma CLI 8.0.0-rc.26, both already latest on npm. The main change: ORM commands run on @prisma/cli-engine 0.9.0, so a piped command prints tab-separated data lines and a script that reads JSON must pass --json; each ORM command page now lists its data lines. It also closes an 8.0.0-rc.19 gap: the middleware pages now document the orm-call activity and intercept.onActivity.

Release-notes entries and the pages that reflect them

  • Versions: orm/release-status.mdx (CLI 8.0.0-rc.26), guides/upgrade-prisma-orm/postgresql.mdx, guides/upgrade-prisma-orm/mongodb.mdx, (index)/prisma-orm/from-scratch.mdx, guides/frameworks/solid-start.mdx.

  • A piped ORM command prints data lines, not JSON, unless you pass --json: cli/global-flags.mdx (rules, full per-command table, commands that print nothing), a data-lines section on cli/contract-emit, contract-infer, contract-print, db-init, db-migrate, db-schema, db-sign, db-update, db-verify, orm-init, migration-new, migration-plan, migration-show, migration-status, migration-ref; cli/db-schema.mdx and cli/db-update.mdx jq examples read the kind: "result" line; cli/db-sign.mdx JSON framing; guides/deployment/cloudflare-workers.mdx and guides/switch-to-prisma-orm/from-sql-orms.mdx no longer show JSON output from a command run without --json; guides/deployment/turborepo.mdx engine pin 0.9.0.

  • The contract stores a column's type, not the type alias: orm/contract-authoring/typescript-schema-builder.mdx (no types key, field.namedType takes an enum, aliases as field.column(type.X(...)) constants, upgrade steps), orm/contract-authoring/psl-syntax.mdx, orm/contract-authoring/the-data-contract.mdx, orm/extensions/using-extensions.mdx (sign Supabase databases again).

  • A SQL builder insert must include every column the database requires; @onUpdate-only fields are required in create: orm/reference/sql-query-builder.mdx, orm/reference/orm-client.mdx, orm/contract-authoring/psl-syntax.mdx, orm/contract-authoring/typescript-schema-builder.mdx.

  • MongoDB enum members and discriminator values in the syntax of their data type: orm/contract-authoring/psl-syntax.mdx, orm/data-modeling/mongodb.mdx, orm/data-modeling/relational-databases.mdx.

  • Supabase forRole and pg takes a pool only: orm/extensions/using-extensions.mdx (pg.Pool, SUPABASE.CONFIG_INVALID, enums and nativeEnums on role-bound clients, db.close() behaviour).

  • Removed Postgres namespace questions and accessChanges: cli/db-update.mdx, cli/migration-plan.mdx, orm/migrations/generating-a-migration.mdx, orm/contract-authoring/psl-syntax.mdx.

  • meta.schemaIssues: cli/db-verify.mdx, cli/db-sign.mdx, cli/db-migrate.mdx.

  • *Feature: aliases with @default, @onCreate, @onUpdate, temporal.CreatedAt and temporal.UpdatedAt, aliases on MongoDB, type. helpers: orm/contract-authoring/psl-syntax.mdx, orm/contract-authoring/typescript-schema-builder.mdx, orm/data-modeling/mongodb.mdx, orm/coming-from-prisma-orm-7.mdx.

  • Feature: rename and move Postgres namespaces: cli/db-update.mdx, cli/migration-plan.mdx, orm/reference/migration-api.mdx (renameSchema, setTableSchema, dropSchema).

  • Feature: relation actions and primary keys can change on Postgres: cli/migration-plan.mdx.

  • Feature: Prisma 7 migrate commands exit with CLI.COMMAND_MOVED: orm/coming-from-prisma-orm-7.mdx (the migrate reset row now matches the CLI message).

  • Feature: a failed check names the object it expected; meta.databaseUnchanged: cli/db-migrate.mdx, orm/migrations/how-migrations-work.mdx, orm/migrations/editing-a-migration.mdx, orm/migrations/applying-a-migration.mdx, orm/reference/migration-api.mdx.

  • Feature: a MongoDB discriminator may be an alias of String: orm/contract-authoring/psl-syntax.mdx.

  • Fix: Supabase internal runtime closed by db.close(): orm/extensions/using-extensions.mdx.

  • Fix: db migrate on MongoDB no longer says a partly applied failure changed nothing: cli/db-migrate.mdx, orm/migrations/applying-a-migration.mdx.

  • 8.0.0-rc.19 gap: orm-call activity and intercept.onActivity**: orm/middleware/how-middleware-works.mdx, orm/middleware/authoring-custom-middleware.mdx, and orm/middleware/built-in-cache.mdx (ORM reads are cached by call; the custom store uses CachedValue).
  • Other corrections found while checking the pages

  • orm/middleware/how-middleware-works.mdx used cacheAnnotation({ ttl }); the annotation has no ttl (the store sets the lifetime).

  • orm/migrations/applying-a-migration.mdx said a MongoDB re-run stops at a precheck; it skips each operation already done.

  • orm/reference/orm-client.mdx said only id may be left out of a MongoDB create; generated and optional fields may be too.

  • orm/coming-from-prisma-orm-7.mdx: the migrate reset row now says db migrate, as the CLI does.
  • No page to land on

  • Supabase SupabaseRuntime.forRole, SupabaseRoleScope, and the extension-author changes (acquireRawConnection, ownsDriver, databaseTypes, typeRef and ExecutionContext.types removed, AuthoringEntityContext.dataTypes, SchemaTables.hasNamespace, SchemaOwnership.namespaceDeclaringSpaces): no page documents these APIs.

  • The control API option acceptAccessChanges: there is no control API reference page, so only cli/db-update.mdx names it.

  • migration list, log, graph, check and contract format have no page; their data lines are in cli/global-flags.mdx.

  • orm/reference/error-reference.mdx is generated from the ORM repository and is behind it: it lacks CONTRACT.TYPES_KEY_REMOVED, PSL_VALUE_REFUSED, CLI.COMMAND_MOVED, and still says db.enums does not find 0.50 for the member 0.5. The sync workflow fixes it; it is not hand-edited here.
  • Agent: rochester-20

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: wmadden Review duration: 562m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8576"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%
    Repository