Skip to content

fix(mongo): read unmodified Prisma 6 schemas with Prisma 6's storage and types, and correct the rc.13 upgrade guide - #30521

Merged
wmadden merged 55 commits into
mainfrom
mongo-qa-prisma6-guides
Sep 30, 2026
Merged

wmadden merged 55 commits into
mainfrom
mongo-qa-prisma6-guides

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

At a glance

prisma6Schema lets a Prisma 8 project use a Prisma 6 MongoDB schema as its contract source, while Prisma 6 keeps running the app against the same database:

// prisma.config.ts
import { definePrismaConfig } from 'prisma/config';
import { defineConfig as ormConfig, prisma6Schema } from '@prisma/orm-mongo/config';

export default definePrismaConfig({
  orm: ormConfig({
    contract: prisma6Schema('prisma/schema.prisma'),
    db: { connection: process.env['DATABASE_URL']! },
  }),
});

On rc.13 it could not read this ordinary Prisma 6 schema, and it mistyped one of the fields it could read:

model Post {
  id     String  @id @default(auto()) @map("_id") @db.ObjectId
  likes  Int
  author Author

  @@index([author.name])
}

type Author {
  name String
}
  • @@index([author.name]) is a parse error, Invalid model member declaration ".", so contract emit fails.
  • likes is mapped to Int32. Prisma 6 stores a plain Int as a BSON long, so Prisma 8 writes int into a field Prisma 6 fills with long, and a validator added at cutover would refuse every document Prisma 6 wrote.

After this PR the schema emits, the index gets the reader's own diagnostic, and likes is stored as a long and read as a number, exactly as Prisma 6 does.

The decision

A Prisma 6 source reads an unmodified Prisma 6 schema and keeps what Prisma 6 does with it: the BSON type each field is stored as, and the JavaScript type the application sees. Where Prisma 8 cannot do either, the reader refuses with a diagnostic that says what the fix does to the running Prisma 6 app. Nothing outside the Prisma 6 package knows which source produced a contract; the one exception is orm init, which already detects Prisma 7 projects on main.

What is different after merge:

  1. The PSL parser reads dotted index paths, and each schema reader reports its own diagnostic for them.
  2. A new Mongo scalar, Int64Number, stores a BSON long and reads it as a number. A plain Prisma 6 Int maps to it.
  3. The reader accepts every native type Prisma 6 accepts on MongoDB except @db.Timestamp.
  4. Every reader diagnostic says what its fix does to the Prisma 6 app, and diagnostics come in source order.
  5. orm init recognises a Prisma 6 MongoDB project and prints the side-by-side setup, and never adds "type": "module" to an existing project.
  6. The rc.12 to rc.13 upgrade guides describe only what an rc.12 project must change.
  7. contract.d.ts imports only the codec helper types it uses.

Dotted index paths

The shared PSL parser, in packages/1-framework/2-authoring/psl-parser, accepted a dotted path in an index only as a call, author.name(sort: Asc). The plain form failed to parse, so contract emit and contract format both refused the file. The parser now reads any dotted path in a list as one PathExpr node, called or not, and the language server colours both forms alike. Parse trees for everything that parsed before are unchanged; a review compared them against main over 20 groups of PSL.

Each reader then decides what it supports. The Prisma 6 reader reports its composite-index diagnostic. The Prisma 8 Mongo reader refuses with PSL_INVALID_INDEX, and says "composite type" only when the path starts at one. The Prisma 7 reader says Prisma 7 treats the path as an unknown field.

Storage and types match Prisma 6

The reader's binding, in packages/3-mongo-target/1-mongo-target/src/core/prisma6-binding.ts, maps each Prisma 6 type to a Mongo codec. A codec decides both the stored BSON type and the application type, so the binding must pick one that matches Prisma 6 on both. Checked against the Prisma 6.19.3 client, a plain Int is stored as a long and read as a number. No Mongo codec did both: Int32 stores int, and Int64 reads a bigint.

Postgres already has this pair: BigIntNumber (pg/int8number@1) stores int8 and reads a number within the safe-integer range, and SQLite has the same. Mongo gets the equivalent, named by ADR 257's rule (added by #30474): PSL Int64Number, codec id mongo/int64Number@1, helper field.int64Number(). It stores a long, reads a long as a number whatever the driver's BSON options, and refuses fractions and values outside the safe-integer range. A plain Int and Int @db.Long map to it; Int @db.Int maps to Int32, and BigInt to Int64. rc.13 could store a fractional number in such a field; reading one now fails with an error that names the value and points at the upgrade step that repairs it.

The reader used to refuse every native type. It now reads the 11 that Prisma 6.19 accepts on MongoDB and that store a type Prisma 8 has a codec for, such as @db.Long, @db.Date and @db.ObjectId. It still refuses DateTime @db.Timestamp, because Prisma 8 has no codec for a BSON timestamp. Bytes @db.ObjectId is stored as an ObjectId, so Prisma 8 reads and writes it as a 24-digit hex string where the Prisma 6 client uses bytes; the README shows the conversion.

Diagnostics a Prisma 6 user can act on

A Prisma 6 schema still drives the Prisma 6 app, so a diagnostic that says "remove this attribute" must say what that does to the app. Each one now does. For example, dropping onDelete: Cascade from a required relation makes Prisma 6 refuse to delete a parent that has children, with error P2014. Diagnostics come in source order, a wrong provider is reported alone, every bad @relation argument is reported rather than the first, and a mistyped schema path says there is no file there and to fix prisma6Schema() in prisma.config.ts. prisma7Schema gets the same missing-file message.

orm init

On rc.13, orm init in a Prisma 6 MongoDB project said "This looks like a Prisma 7 project" and suggested --from-prisma7-schema, which then failed. Init now treats a schema with provider = "mongodb" as Prisma 6, since Prisma 7 has no MongoDB connector. It finds the schema at prisma/schema.prisma, through prisma.schema in package.json, in a prisma/schema/ folder, or through a Prisma 6 config. It stops before changing anything, with CLI.INIT_PRISMA6_SCHEMA_FOUND, and prints the side-by-side setup: a prisma.config.ts that reads the schema through prisma6Schema, a prisma6.config.ts that keeps the Prisma 6 CLI working, and the install and emit steps. It no longer adds "type": "module" to a package.json that already has dependencies, which broke CommonJS apps. Closes #30473.

The prisma6Schema READMEs, in packages/3-extensions/mongo and packages/2-mongo-family/2-authoring/contract-prisma6, document that setup, tested end to end. Prisma 8 keeps the package name prisma, and Prisma 6 is installed as the npm alias "prisma6": "npm:[email protected]". They list the files db sign writes and what changes for Prisma 6 application code. They also say what to do when db verify or db sign finds the database behind the contract: apply the change with Prisma 6 db push, then contract emit and db sign. The CLI's own advice does not change.

The rc.12 to rc.13 upgrade guides

The PRs that built this Mongo work were stacked, and each recorded its upgrade entry against the PR before it, not against rc.12. All of them shipped in rc.13, so the published guide described changes to things rc.12 never had. It told users that Mongo Json now refuses non-JSON values, for example, but rc.12 had no Mongo Json type at all. upgrade-instructions/README.md allows correcting a published guide in a reviewed PR, and keeps the archived sources as submitted.

The corrections, in skills/prisma-8/upgrading/:

  • The app guide drops the Json entry, narrows the variant-field entry to ObjectId, limits the scalar rename to Prisma 8 contract sources so it leaves Prisma 6 schemas alone, and describes what a stale codec import looks like under skipLibCheck.
  • The extension guide lists the codecs new in rc.13, and gives each @internal/* path its @prisma/orm-* equivalent.
  • The rc.13 release notes and CHANGELOG lose the matching bullet.
  • The upgrade flows say how detection patterns run (new RegExp(pattern) over the whole file) and to skip node_modules and build output.

contract.d.ts imports

The emitter imported every codec helper type the target declares, used or not, so a Mongo contract imported Vector with no vector field. It now imports only what the contract uses. This regenerates 267 committed contract.d.ts files and snapshots; only their import lines change.

Upgrade instructions

  • prisma6-int-is-a-long (app): Prisma 8 now writes a Prisma 6 Int as a long, and its type stays number. It lists and repairs fractional values rc.13 stored in such fields, including in lists and embedded documents.
  • prisma6-bytes-objectid-is-hex (app): native types are now read, and Bytes @db.ObjectId is read and written as a hex string.
  • contract-dts-imports-only-used-types (extension): no action needed.

Tests

Each code change has a test that fails without it:

  • Parser tests, the parse-tree comparison against main, and reader and language-server tests for dotted paths.
  • A binding test that checks each codec against a table of what the Prisma 6.19.3 client stores, and a type test that fails if the TypeScript builder's copy of the Mongo codec types differs from the target's.
  • An integration test in test/integration/test/mongo/prisma6-source/ that reads documents stored the way Prisma 6 stores them and checks the BSON types Prisma 8 writes back.
  • A test that each earlier-Prisma provider exposes only format, inputs and load.
  • CLI tests for init's detection, and the prisma6-source and prisma7-source journeys.

Alternatives considered

  • Map a Prisma 6 Int to Int32. It keeps the type but writes int where Prisma 6 writes long, and a validator at cutover would refuse Prisma 6's documents.
  • Map a Prisma 6 Int to Int64. It stores long but changes the application type to bigint, and a Prisma 6 source must not change the types of the fields it reads.
  • Let the contract source name the tool that owns the schema, and have the CLI refuse or advise based on it. Rejected: the framework and CLI must not know which source produced a contract (ADR 252). Only the Prisma 6 and Prisma 7 packages' READMEs describe their workflow.
  • Support Prisma 6 literal defaults such as @default(false). MongoDB has no stored defaults, and contract execution defaults support generators only, so this needs a new runtime generator. The diagnostic states the consequence instead.
  • Record new pending entries instead of correcting the published guide. They would ship in the next release and leave rc.12 users on wrong instructions until then.

Merge after #30519. That PR encodes Mongo list fields element by element and decodes embedded documents; without it, Prisma 6 Int[] fields cannot be written and embedded Int fields are not decoded. This branch will be updated with main after it lands.

Found by manual QA of the Mongo work in rc.13, including following the upgrade guide on a real rc.12 project.

Agent: mimir-65

🤖 Generated with Claude Code

wmadden-electric and others added 30 commits September 29, 2026 10:51
A Prisma 6 schema may index a field of a composite type with
`@@index([address.city])`. The shared parser read only `a` or `a.b(` in
that position, so the bare form failed with PSL_INVALID_MODEL_MEMBER
before the Prisma 6 reader could report its own diagnostic, and a call
on a deeper path such as `address.geo.lat(sort: Desc)` failed too.

A dotted chain in expression position now parses as a `PathExpr` node
(`PathExprAst.path()`), and a call whose callee has more than one dot
keeps that path as its callee. The Prisma 6 reader reports
PSL.PRISMA6_MONGO_COMPOSITE_INDEX_PATH_UNSUPPORTED for every form, and
`contract format` formats such a schema instead of refusing it.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With dotted paths now parsed, `@@index([address.city])` in a Prisma 8
Mongo schema reached the attribute spec and failed with a generic
"Expected one of: field name | wildcard() | ..." listing. The Mongo
interpreter now reports PSL_INVALID_INDEX naming the path and saying
that indexes on fields of a composite type are not supported yet, for
the bare path, the call form and deeper paths.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Prisma 6 MongoDB source told users to remove an unsupported
`@default(...)` or `onDelete`, but the schema it reads is the one the
running Prisma 6 app uses. On Prisma 6 the client fills defaults and
emulates referential actions, so removing them changes that app: a
required field must then be passed to every create call, and cascades
stop.

Every diagnostic whose fix edits the Prisma 6 schema now says what the
edit does to the Prisma 6 app, as the Unsupported message already did:
defaults (required, optional and composite-type fields), onDelete and
onUpdate, optional generated fields, @updatedat on other types, native
types, list relations, views, non-ObjectId ids (stored _id values keep
their type), and composite index paths.

Literal defaults stay refused. MongoDB has no stored defaults, and the
contract has execution defaults only for generators; filling a literal
on create would need a new runtime generator.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…provider

`contract emit` on a Prisma 6 schema listed findings in the order the
reader visited constructs, so a view at the end of the file printed
first. A PostgreSQL schema got PSL.PRISMA6_MONGO_PROVIDER_MISMATCH and
then an id finding for every model, and a mistyped schema path printed
a raw ENOENT error.

Findings are now sorted by file and position. A provider mismatch is
reported alone (with any parse errors), since nothing else about a
schema for another database is useful. A path with nothing at it says
so and names prisma6Schema() in prisma.config.ts as the place to fix
it.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
When `db verify` found a storage-hash mismatch it said "Migrate database
or re-sign if intentional", and when `db sign` refused it said to run
`db update`. For a project whose database another tool migrates, that
advice is wrong: Prisma 8 must not migrate that database.

A contract source may now declare `schemaOwner.applySchemaChange`, the
step in the owning tool that applies a schema change. When it is set,
the storage-hash mismatch and schema drift findings of `db verify` and
the refusal of `db sign` point at that step and then at `db sign`. The
framework only carries the text; the source that knows the tool writes
it.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…database is behind

A project that reads its Prisma 6 schema through `prisma6Schema`, or its
Prisma 7 schema through `prisma7Schema`, keeps the earlier version in
charge of the database. After a schema change `db verify` told such a
user to migrate the database and `db sign` told them to run `db update`,
which would have Prisma 8 change a database it does not own.

Both sources now declare the earlier version as the schema owner, so
the advice is Prisma 6 `db push` (or Prisma 7 migrations) followed by
`db sign`.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Init set "type": "module" in any package.json without a type, so that
the scaffolded db.ts, which imports the contract with an ESM-only
import attribute, loads. In an existing app that changes how every .js
file loads and can break a CommonJS app, such as a Prisma 6 project.

Init now sets the type only in a package.json it creates or one that
declares no dependencies yet. An existing project that declares
dependencies keeps its module type, and init warns that db.ts loads
only as an ES module.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Schema setup

In a project whose schema.prisma says provider = "mongodb", orm init
called it a Prisma 7 project and suggested --from-prisma7-schema, which
then failed with CLI.INIT_PRISMA7_SOURCE_UNAVAILABLE. Nothing mentioned
prisma6Schema, and a starter run took the prisma package name and
prisma.config.ts from the Prisma 6 CLI the app still needs.

Prisma 7 has no MongoDB support, so such a schema is a Prisma 6 schema.
Init now stops with CLI.INIT_PRISMA6_SCHEMA_FOUND before asking,
installing or writing anything, and never suggests the Prisma 7 path.
Its next actions are the side-by-side setup, with the files to write:
the Prisma 6 CLI moves to an npm alias run through a prisma6 script with
its own prisma6.config.ts, Prisma 8 is installed, and prisma.config.ts
reads the schema through prisma6Schema. A run with --target and
--authoring still scaffolds a starter project, and now warns what that
does to the Prisma 6 CLI. `orm init --help` describes both.

Closes #30473

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… code changes

The Mongo package README asked for a package.json that depends on
`prisma` "the Prisma 8 CLI" while Prisma 6 keeps running `prisma db
push`; one package name cannot resolve to both. It also never said
that `db sign` writes a ref and a contract snapshot into the project,
or how Prisma 8 reads the same documents differently.

The README now documents a setup that was run end to end (pnpm 10.27,
Prisma 6.19.3, Prisma 8.0.0-rc.18, a MongoDB replica set): Prisma 8
keeps the `prisma` name, Prisma 6 is installed under an npm alias and
run through a `prisma6` script with its own prisma6.config.ts, because
the alias installs no binary and the Prisma 6 CLI reads
prisma.config.ts; both configs import dotenv/config; mongodb 7 is
declared as the peer it is. It describes `migrations/app/refs/db.json`,
the snapshot and `--no-advance-ref`, and lists what changes for Prisma 6
application code: `_id`, collection-named models, stored enum values,
optional fields that read as absent, Bytes, BigInt, Decimal and Json.
The reader's README summarises the same points.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every emitted contract.d.ts imported each helper type the stack
declares next to its CodecTypes: every Mongo contract imported
`Vector`, and every Postgres contract imported Char, Varchar, Numeric,
Timestamp and the rest, whether or not a field used them. The emitter
now writes the body first and imports a declared type only when the
body names it.

The committed contract.d.ts files and migration snapshots are
regenerated with `pnpm fixtures:emit`; only their import lines change.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The examples' contract.d.ts files changed only in their import lines.
An app needs no change: its committed contract.d.ts keeps working, and
the next `contract emit` drops the unused imports.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ange

The stacked PRs that added Mongo Int64, Decimal128, Binary, Json and
Bson each wrote their upgrade fragment against the previous PR, and all
of them shipped in rc.13. The published guide therefore told rc.12
users that their Mongo Json fields changed meaning, validator and
storage hash, and that variant Int64, Decimal128, Binary, Json and Bson
fields and Prisma 6 contracts behaved differently. rc.12 had none of
these: it refused Json, and its Mongo codecs were ObjectId, String,
Double, Int32, Bool, Date and Vector.

Each entry the project wrote was checked against v8.0.0-rc.12 (its
sources and published exports). The app guide drops
mongo-json-field-semantics, and mongo-variant-field-codecs keeps only
the ObjectId change, including the $toObjectId fix for TypeScript
builder contracts, which had no validator in rc.12. The extension
entry mongo-bson-codec-added lists the five codecs that are new rather
than describing a change to mongo/json@1. The rc.13 release notes lose
the matching breaking-change bullet and link the corrected guides.

Published guides are corrected in place through a normal PR, as
upgrade-instructions/README.md allows; the archived fragments under
releases/ stay as they were submitted.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… in a Json field

The query lived only in the rc.12 to rc.13 app guide, which no longer
carries the Json entry, and its archived source missed a Date or
ObjectId that is a direct element of an array. The reference now holds
the five-clause query the published guide had, with the $elemMatch
clause for direct array elements, and says exactly what it misses:
values nested inside an object, an array of objects or an array of
arrays. Checked against MongoDB with one document per case.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h internal one

Several entries named only @internal/* specifiers, which an extension
author outside this repository cannot import: the codec types and
BSON value types, the contract types, the Mongo control adapter and
driver, the psl-printer, psl-infer and relational-core subpaths. Each
now also names the @prisma/orm-* path that re-exports it (checked
against the generated re-exports of the public packages), the Mongo
runner snippet uses the published imports, and
mongo-field-builder-execution-defaults-parameter shows where
ContractFieldType, ExecutionMutationDefaultPhases, FieldBuilder and
EnumTypeHandle are imported from.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The detection for mongo-psl-scalar-names (Int, Float, Boolean,
DateTime) matched a Prisma 6 schema.prisma kept beside the Prisma 8
contract, and its only guard, "a schema whose prisma.config.ts uses
@prisma/orm-mongo", holds in exactly such a project. Renaming there
breaks Prisma 6, which has no Int32, Double, Bool or Date.

The detection now skips any file that declares provider = "mongodb",
which every Prisma 6 MongoDB schema does and no Prisma 8 schema in the
repository does, and the guide limits the rename to the Prisma 8
contract source and its migration copies, naming Prisma 6 schemas and
the other files of a multi-file Prisma 6 schema as excluded. On the QA
side-by-side project the Prisma 6 schema drops out of the hits while
src/contract.prisma and its three migration copies stay.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bCheck

mongo-codec-subpaths-move-to-target said emitted contract.d.ts files
that still import adapter/codec-types "no longer compile". With
skipLibCheck: true, which the tsconfig from prisma orm init sets, tsc
reports nothing for a declaration file: the import fails silently, the
contract field types stop resolving, and the errors show up where the
contract is used. The entry now describes that and says to rewrite or
re-emit every file the detection finds whether or not tsc complains.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A detection glob such as **/*.{ts,mts,cts} also matched build output
(an extension's dist/index.d.mts, for example) and node_modules, and
the guide format has no way to exclude paths. upgrade-app.md and
upgrade-extension.md now say to skip node_modules and the directories
the build writes, and to keep committed migration snapshots.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The ORM fills a temporal.* preset field only when it writes, so after
the field is added, documents written before it read the field as
undefined although it is typed Date, and with a PSL contract every
update to them fails collection validation. The Mongo subsystem doc now
gives a backfill next to the presets: one updateMany that sets every
added preset field (createdAt from the ObjectId _id timestamp,
updatedAt from $$NOW), because a document still missing one of them
fails the new validator. Run against MongoDB with the validator in
place. The scalar types reference points to it.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
main changed the db sign and db verify drift advice to offer db update
or a contract change. A contract source that names a schema owner keeps
its own advice ahead of that.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Semantic tokens treated every expression that was not a literal, call,
array, object or tagged literal as an identifier, so the new PathExpr
node from `@@index([address.city])` reached `identifier.name()` and
threw. A member path is now tokenised as one property per segment, and
so is the callee of a call on a deeper path such as
`address.geo.lat(sort: Desc)`, read through the new
FunctionCallAst.memberPath() getter.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The extensions' contract.d.ts files changed only in their import lines,
and the Mongo package README gained documentation. An extension needs
no change: a committed contract.d.ts keeps working, and the optional
schemaOwner field on contract sources is new surface nothing has to
set.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o fix it

prisma7Schema printed the raw Node ENOENT error for a path with nothing
at it, and the error reference already claimed otherwise (naming
prisma6Schema). The Prisma 7 source now says there is no file or
directory at the path and to fix the path passed to prisma7Schema() in
prisma.config.ts, as the Prisma 6 source does, and the error reference
names the right function.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the guides say so

The scalar-rename pattern skipped a Prisma 6 schema only when run as a
JavaScript regex over the whole file without flags. With the m flag its
^ matched at every line, so the file-level exclusion failed, and a
line-by-line tool (grep -P, rg -P) cannot see the rest of the file at
all. The guides only said "glob + content predicate", and other
patterns already span lines.

upgrade-app.md and upgrade-extension.md now state how a detection
block runs: each matches entry is new RegExp(pattern), no flags, tested
against a whole file; contains entries are substrings; a line-by-line
search is not the same test, and rg -U --pcre2 is. The scalar-rename
pattern anchors its exclusion with (?<![\s\S]), which holds with any
flags. Checked with Node (no flags, g, m, gm) and rg -U --pcre2 on the
QA side-by-side project: the Prisma 6 schema is skipped and the four
Prisma 8 files are hits, and every other app and extension pattern
gives the same hits in both engines. The authoring skill says the same.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hout it

The message said only that the Prisma 6 client "falls back to its
default action for this relation". Checked with the Prisma 6.19.3
client on MongoDB: without onDelete, deleting a parent that still has
children on a required relation fails with P2014 (Restrict), on an
optional relation the children's key is set to null (SetNull), and
onUpdate defaults to Cascade.

The message now names the default the client applies instead and what
it does to that relation (for example "deleting a User that still has
Post documents fails with P2014"), or says the Prisma 6 app is
unchanged when the argument already names the default.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…isma 6 app

The native type message said "if @db.Long is not the default BSON type
for Int, removing it also changes the Prisma 6 app", though the reader
knows both types. It now states the case, from what Prisma 6.19 stores
(checked by writing every native type through the Prisma 6 client):
@db.Long on Int, @db.String on String and @db.Date on DateTime change
nothing, because Prisma 6 stores those types anyway (a plain Int is a
BSON long); @db.Int or @db.Timestamp mean new values are stored as long
or date while stored documents keep int or timestamp; a native type
Prisma 6 itself rejects on that field type is named as such. The same
applies to @db.ObjectId on Bytes and on types Prisma 6 rejects.

IGNORED_FIELD_REFERENCED now says that removing @ignore adds the field
to the Prisma 6 client, that removing an index makes Prisma 6 db push
drop it (checked), and that removing a relation field removes that
relation from the Prisma 6 client.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Init found a Prisma 6 (or Prisma 7) schema only at prisma/schema.prisma
or at the path a Prisma 7-style config declares. A Prisma 6 project that
names its schema in the prisma.schema field of package.json, or keeps a
multi-file schema in prisma/schema/, got the generic missing-flags
error, and a starter run then wrote prisma.config.ts with no warning,
which breaks every Prisma 6 command.

When no flag or config names a schema, detection now reads the
prisma.schema field of package.json, else the first of
prisma/schema.prisma, schema.prisma and the prisma/schema folder that
exists. The starter warning uses the same lookup.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… Prisma 6 CLI

CLI.INIT_PRISMA6_SCHEMA_FOUND and orm init --help offered --target and
--authoring "to scaffold a separate Prisma 8 starter project here". It
is not separate: it writes prisma.config.ts into the same project,
which the Prisma 6 CLI also reads, so every Prisma 6 command then fails,
and its install step replaces the Prisma 6 CLI with prisma@latest. The
error, the starter warning, --help, the CLI README and the error
reference now say that.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nifest is not an existing app

The warning said db.ts "loads only as an ES module". On Node 24 and
later, which Prisma 8 requires, Node loads it in a package with no
"type" and CommonJS code can require it; Node prints
MODULE_TYPELESS_PACKAGE_JSON and reparses it as an ES module, and tsx
loads it silently. The warning and the module settings reference now
say that, and that setting "type": "module" removes the warning.

A manifest with only devDependencies (typescript, tsx) counted as an
existing CommonJS app and got that warning about .js files it does not
have. Only runtime dependencies mark an existing app now; such a
project gets "type": "module" as a new one does.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The last two steps of CLI.INIT_PRISMA6_SCHEMA_FOUND printed
`{bin} contract emit` and `{bin} db sign` literally, because the human
renderer does not substitute {bin} (#30496). The rest of init writes
`prisma ...`; these steps now use the same EMIT_COMMAND and a new
DB_SIGN_COMMAND, which init-blocks uses too.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
wmadden-electric and others added 2 commits September 30, 2026 01:03
The coverage run showed three items on changed lines with no hits:
PathExprAst.segments(), the FunctionCallAst.path() case whose
identifier segments sit directly under the call node, and the init
path for a Prisma 6 project that declares no Prisma 6 CLI. Tests now
exercise each.

The last one showed a wording defect: the printed step told the user
to replace a "prisma" dev dependency the project does not have. It
now says to add the "prisma6" dev dependency instead.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…at the guide

For an Int in a composite type the model holds in a list
(addresses Address[]), the dotted-path repair fails with "$round only
supports numeric types, not array". The prisma6-int-is-a-long entry
now lists documents with a double in a list or a composite field, and
repairs a list of composite values with $map and $mergeObjects. The
integration test runs that listing and repair against MongoDB.

The int64 decode error no longer offers a single-field pipeline,
which is wrong for a value inside a list. It says how to rewrite the
value, to map over the list when it sits in one, and names the
upgrade step that has the queries.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner September 29, 2026 23:55
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: prisma/orm/.coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: cc2aea62-5de4-4f26-b3a6-c60515770803

📥 Commits

Reviewing files that changed from the base of the PR and between 35f68b2 and 082e9e4.

⛔ Files ignored due to path filters (229)
  • examples/bundle-size/src/mongo/generated/contract.d.ts is excluded by !**/generated/**
  • examples/bundle-size/src/postgres/generated/contract.d.ts is excluded by !**/generated/**
  • examples/prisma7-adoption/generated/prisma8/contract.d.ts is excluded by !**/generated/**
  • packages/2-sql/4-lanes/sql-builder/test/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • packages/3-extensions/postgres/test/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • packages/3-extensions/sql-orm-client/test/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • packages/3-extensions/sql-orm-client/test/fixtures/junction-namespaces/generated/contract.d.ts is excluded by !**/generated/**
  • test/e2e/framework/test/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/enum-order-by/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/mongo/bson-scalars/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/mongo/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/mongo/prisma6-source/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/mongo/prisma6-source/_fixture/generated/contract.json is excluded by !**/generated/**
  • test/integration/test/mongo/temporal-presets/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/namespaced-accessors/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/avg/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/avg/_fixture/numeric/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/count/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/group_by/_fixture/main/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/group_by/_fixture/regression-21789/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/group_by_having/_fixture/common/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/group_by_having/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/many_count_relation/_fixture/compound/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/many_count_relation/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/many_count_relation/_fixture/nested/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/many_count_relation/_fixture/self/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/max/_fixture/common/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/max/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/min/_fixture/common/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/min/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/sum/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/sum/_fixture/numeric/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/uniq-count-relation/_fixture/base/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/aggregation/uniq-count-relation/_fixture/nested/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/bigint/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/bool/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/bytes/_fixture/relations/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/bytes/_fixture/scalars/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/datetime/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/decimal/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/enum_type/_fixture/postgres/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/float/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/int/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/json/_fixture/scalar/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/native/postgres/_fixture/other/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/native/postgres/_fixture/string/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/string/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/through_relation/_fixture/common/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/through_relation/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/through_relation/_fixture/enum/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/through_relation/_fixture/json/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/data_types/through_relation/_fixture/lists/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/distinct/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/bigint_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/bytes_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/decimal_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/_fixture/decimal-list/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/_fixture/enum/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/_fixture/list/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/_fixture/mixed/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/bigint_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/bytes_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/datetime_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/decimal_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/failure/_fixture/common/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/failure/_fixture/default/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/failure/_fixture/list/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/float_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/having_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/int_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/json_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/json_filter/_fixture/list/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/relation_filter/_fixture/complex/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/relation_filter/_fixture/one-to-many/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/relation_filter/_fixture/one-to-one-list/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/relation_filter/_fixture/one-to-one/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/field_reference/string_filter/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/filter_regression/_fixture/compound-one-to-many/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/filter_regression/_fixture/many-to-many/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/filter_regression/_fixture/one-to-many/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/filters/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/json/_fixture/optional/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/list_filters/_fixture/base/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/list_filters/_fixture/decimal/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/list_filters/_fixture/json/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/many_relation/_fixture/25103/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/many_relation/_fixture/l2-to-one/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/one2one_regression/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/one_relation/_fixture/21356/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/queries/filters/one_relation/_fixture/21366/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/engines/writes/top_level_mutations/create_many/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/batching-bigint/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/batching-bytes/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/blog-update/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/bytes-upsert/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/chunking-query/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-create/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-createMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-delete/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-deleteMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-findFirst/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-findMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-update/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-updateMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-upsert-create/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-list-upsert-update/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-create/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-createMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-delete/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-deleteMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-findFirst/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-findMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-update/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-updateMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-upsert-create/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-object-upsert-update/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/composites-selection/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/create-default-date/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/decimal-list/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/decimal-precision/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/decimal-scalar/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/default-selection/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/default-selection/_fixture/mongo/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/distinct/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/driver-adapters-error-forwarding/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/driver-adapters-team-orm-687-bytes/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/driver-adapters-validate-active-provider/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/enum-array/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/enums/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/extended-where/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/filter-count-relations/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/find-unique-or-throw-batching/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/handle-int-overflow/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/interactive-transactions/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-11974/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-12378/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-12557/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-12572/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-13089-dollar-in-search/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-14271/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-14954-date-batch/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-15044/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-16535-select-enum/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-17005-args-type-conflict/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-17030-args-type-conflict/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-18970-invalid-date/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-20261-group-by-shortcut/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-21352-id-does-not-exist/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-21454-type-in-json/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-21631-batching-in-transaction/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-22098-column-does-not-exist/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-22610-parallel-batch/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-23201-non-ascii-comments/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-23902/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-25404/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-27455-bytes-id/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-27511-include-enum-array/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-28151-broken-nested-set/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-28192-pg-historical-dates/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-28591-mapped-enums/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29010-bigint-precision-relation-joins/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29174-jsonb-parameter-regression/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29176-cursor-parameter-regression/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29254-query-plan-cache-mutation/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29267-uint8array-in-json/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29309-datetime-cursor/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-29331-query-plan-cache-bloat/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-4004/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-5952-decimal-batch/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-TML-1664-invalid-enum-value-error/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-TML-1664-unknown-enum-value-read-error/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/issues-unmapped-driver-error-user-facing/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/json-fields/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/large-floats/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/legacy-aggregate-raw/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/legacy-aggregations/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/legacy-json/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/legacy-malformed-id/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/legacy-optional-relation-filters/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-count/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-createMany/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-createManyAndReturn/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-findFirstOrThrow/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-findUniqueOrThrow/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-updateManyAndReturn/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-upsert-native-atomic/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/methods-upsert-simple/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/mixed-string-uuid-datetime-list-inputs/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/multi-schema/_fixture/different-names/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/multi-schema/_fixture/identical-names/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/multi-schema/_fixture/no-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/multiple-types/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/optimistic-concurrency-control/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/referential-actions-set-default-1to1/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/referential-actions-set-default-1ton/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-17255-mixed-actions/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-17255-same-actions/_fixture/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/cascade-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/cascade-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/noaction-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/noaction-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/restrict-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/restrict-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/setnull-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-1/_fixture/setnull-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/cascade-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/cascade-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/noaction-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/noaction-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/restrict-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/restrict-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/setnull-map/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-1-to-n/_fixture/setnull-plain/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-m-to-n/_fixture/cascade-nomap/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-m-to-n/_fixture/default-nomap/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-m-to-n/_fixture/noaction-nomap/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/ports/prisma/functional/relation-mode-gh-m-to-n/_fixture/restrict-nomap/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-builder/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/execution-defaulted-tags/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/integer-representation/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/junction-namespaces/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/mn-psl/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/non-identifier-names/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/polymorphism/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/scalar-lists/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/sql-orm-client/fixtures/self-relations/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/temporal-defaults/_fixture-timestamp/generated/contract.d.ts is excluded by !**/generated/**
  • test/integration/test/temporal-defaults/_fixture/generated/contract.d.ts is excluded by !**/generated/**
📒 Files selected for processing (172)
  • CHANGELOG.md
  • apps/telemetry-backend/src/prisma/contract.d.ts
  • docs/architecture docs/adrs/ADR 252 - An earlier Prisma version's schema is a contract source.md
  • docs/architecture docs/subsystems/10. MongoDB Family.md
  • docs/architecture docs/subsystems/2. Contract Emitter & Types.md
  • docs/reference/error-reference.md
  • docs/reference/scalar-types.md
  • docs/reference/typescript-module-settings.md
  • docs/releases/v8.0.0-rc.13.md
  • examples/mongo-blog-leaderboard/src/contract.d.ts
  • examples/mongo-demo/migrations/snapshots/62671fbf016c515d808ac613743fddbf3db80384c1997251eac9d6f5fc063590/contract.d.ts
  • examples/mongo-demo/migrations/snapshots/d264cabd6a02546054a776ed3c04438b9a22989f406c49f5590f7f2101156eb0/contract.d.ts
  • examples/mongo-demo/migrations/snapshots/da1339e341177f79b37f765f08200844d7cb4d59d26fe27fe4d95b0112b0c2cd/contract.d.ts
  • examples/mongo-demo/src/contract.d.ts
  • examples/multi-extension-monorepo/app/src/contract.d.ts
  • examples/multi-extension-monorepo/packages/audit/migrations/snapshots/d009a7c12d910e42e7319f0e56ef3113548bd5d3262f06759caf861afd4468f5/contract.d.ts
  • examples/multi-extension-monorepo/packages/audit/src/contract.d.ts
  • examples/multi-extension-monorepo/packages/feature-flags/migrations/snapshots/7d110d82b575662c90102339516066ae91f9633527a9fa7c2f2769b714234a98/contract.d.ts
  • examples/multi-extension-monorepo/packages/feature-flags/src/contract.d.ts
  • examples/paradedb-demo/src/prisma/contract.d.ts
  • examples/prisma-8-cloudflare-worker/src/prisma/contract.d.ts
  • examples/prisma-8-demo/migrations/snapshots/06b2dc7bf45a1c5bf00ae3a80653b88fc0146101673e2a029b2c7db290833284/contract.d.ts
  • examples/prisma-8-demo/migrations/snapshots/62d81d607d929760f7d740b45bb97acc1dba361363c4851b19ee5a1cb4fecbe3/contract.d.ts
  • examples/prisma-8-demo/migrations/snapshots/8abaa3b97115767c5fee67bcd90de0cec3ac1f14a59875c2f5d22887ba435f89/contract.d.ts
  • examples/prisma-8-demo/migrations/snapshots/f62a4154d0b48cb144ca4f74667fc6922e770f81edd5517393285fb92d07dddc/contract.d.ts
  • examples/prisma-8-demo/src/prisma/contract.d.ts
  • examples/prisma-8-postgis-demo/migrations/snapshots/22e2633fb68e81380243a7fb492d650f4b45dcf990f2a3a146744fe8e2277423/contract.d.ts
  • examples/prisma-8-postgis-demo/src/prisma/contract.d.ts
  • examples/react-router-demo/src/prisma/contract.d.ts
  • examples/retail-store/migrations/snapshots/6969147309c36a2e1cef69c2077abfa7ddb568d171ad99f03506d9f428b0a595/contract.d.ts
  • examples/retail-store/migrations/snapshots/9414a8f88a64f9decc0e019967459e49da083f011cf91898094b7bccab6c1810/contract.d.ts
  • examples/retail-store/migrations/snapshots/977a060afe52c4a56f93f2f33d65b8b6b4cc4ded04d16fe6b4f8e7e9e61192d3/contract.d.ts
  • examples/retail-store/migrations/snapshots/bd938b4f8a10c688bd32dc61ec1dd808dcf34e725f08505b39ce365a39c97e1b/contract.d.ts
  • examples/retail-store/src/contract.d.ts
  • examples/supabase/src/contract.d.ts
  • packages/1-framework/1-core/config/src/contract-source-types.ts
  • packages/1-framework/1-core/config/src/exports/config-types.ts
  • packages/1-framework/1-core/errors/src/execution.ts
  • packages/1-framework/2-authoring/psl-parser/README.md
  • packages/1-framework/2-authoring/psl-parser/src/exports/syntax.ts
  • packages/1-framework/2-authoring/psl-parser/src/parse.ts
  • packages/1-framework/2-authoring/psl-parser/src/syntax/ast/expressions.ts
  • packages/1-framework/2-authoring/psl-parser/src/syntax/syntax-kind.ts
  • packages/1-framework/2-authoring/psl-parser/test/format/fixtures/member-paths/expected.prisma
  • packages/1-framework/2-authoring/psl-parser/test/format/fixtures/member-paths/input.prisma
  • packages/1-framework/2-authoring/psl-parser/test/parse-member-path.test.ts
  • packages/1-framework/3-tooling/cli/README.md
  • packages/1-framework/3-tooling/cli/src/commands/init/errors.ts
  • packages/1-framework/3-tooling/cli/src/commands/init/hygiene-package-scripts.ts
  • packages/1-framework/3-tooling/cli/src/commands/init/prisma6-side-by-side.ts
  • packages/1-framework/3-tooling/cli/src/commands/init/prisma7-detect.ts
  • packages/1-framework/3-tooling/cli/src/commands/init/templates/code-templates.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/prepare.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/sign.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/verification.ts
  • packages/1-framework/3-tooling/cli/src/orm/db/verify.ts
  • packages/1-framework/3-tooling/cli/src/orm/init-blocks.ts
  • packages/1-framework/3-tooling/cli/src/orm/init-diagnostics.ts
  • packages/1-framework/3-tooling/cli/src/orm/init-inputs.ts
  • packages/1-framework/3-tooling/cli/src/orm/init-scaffold.ts
  • packages/1-framework/3-tooling/cli/src/orm/init.ts
  • packages/1-framework/3-tooling/cli/src/orm/migration/new.ts
  • packages/1-framework/3-tooling/cli/src/orm/migration/plan.ts
  • packages/1-framework/3-tooling/cli/src/orm/migration/status-findings.ts
  • packages/1-framework/3-tooling/cli/src/orm/migration/status.ts
  • packages/1-framework/3-tooling/cli/test/orm/db-schema-owner.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/db-sign.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/db-verify.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-install.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma6.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma7-detect.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma7-fixtures.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma7-inputs.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma7-output.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma7-scaffold.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/init-scaffold.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/migration-schema-owner.test.ts
  • packages/1-framework/3-tooling/cli/test/orm/migration-status-schema-owner.test.ts
  • packages/1-framework/3-tooling/config-loader/src/orm-section.ts
  • packages/1-framework/3-tooling/emitter/src/generate-contract-dts.ts
  • packages/1-framework/3-tooling/emitter/test/emitter.test.ts
  • packages/1-framework/3-tooling/emitter/test/generate-contract-dts.type-imports.test.ts
  • packages/1-framework/3-tooling/language-server/src/semantic-tokens.ts
  • packages/1-framework/3-tooling/language-server/test/semantic-tokens.test.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/README.md
  • packages/2-mongo-family/2-authoring/contract-prisma6/src/indexes.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/src/interpreter.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/src/provider.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/src/target-binding.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures.test.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/README.md
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/block-dotted-value/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/block-dotted-value/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/composite-index-path-parse-error/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/composite-index-path-parse-error/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/composite-index-path/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/composite-index-path/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/default-unsupported/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/default-unsupported/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/duplicate-declaration/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/id-not-objectid/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/ignored-field-referenced/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/index-argument-unsupported/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/indexes/expected-contract.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/list-relation-unsupported/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/lists/expected-contract.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/native-type-unsupported/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/native-type-unsupported/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/native-types/expected-contract.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/native-types/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/optional-generated-field/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/provider-mismatch/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/provider-missing/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/referential-action-unsupported/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/referential-action-unsupported/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/relation-argument-invalid/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/relation-argument-invalid/schema.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/scalars/expected-contract.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/unknown-attribute/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/updated-at-type-unsupported/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/view/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/parity/prisma6.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/parity/prisma8.prisma
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/provider.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/src/interpreter.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.attribute-specs.test.ts
  • packages/2-sql/2-authoring/contract-prisma7/README.md
  • packages/2-sql/2-authoring/contract-prisma7/src/indexes.ts
  • packages/2-sql/2-authoring/contract-prisma7/src/interpreter.ts
  • packages/2-sql/2-authoring/contract-prisma7/src/provider.ts
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures.test.ts
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/block-dotted-value/expected-diagnostics.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/block-dotted-value/schema.prisma
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/index-argument-unsupported/expected-diagnostics.json
  • packages/2-sql/2-authoring/contract-prisma7/test/fixtures/index-argument-unsupported/schema.prisma
  • packages/2-sql/2-authoring/contract-prisma7/test/provider.test.ts
  • packages/3-extensions/mongo/README.md
  • packages/3-extensions/paradedb/migrations/snapshots/0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599/contract.d.ts
  • packages/3-extensions/paradedb/src/contract.d.ts
  • packages/3-extensions/pgvector/migrations/snapshots/3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8/contract.d.ts
  • packages/3-extensions/pgvector/src/contract.d.ts
  • packages/3-extensions/postgis/migrations/snapshots/7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5/contract.d.ts
  • packages/3-extensions/postgis/src/contract.d.ts
  • packages/3-extensions/postgres/README.md
  • packages/3-extensions/supabase/src/contract/contract.d.ts
  • packages/3-extensions/supabase/test/fixtures/example-app/contract.d.ts
  • packages/3-extensions/supabase/test/fixtures/no-policy/contract.d.ts
  • packages/3-extensions/supabase/test/fixtures/renamed-policy/contract.d.ts
  • packages/3-mongo-target/1-mongo-target/src/core/bson-scalar-helpers.ts
  • packages/3-mongo-target/1-mongo-target/src/core/prisma6-binding.ts
  • packages/3-mongo-target/1-mongo-target/test/codecs.bson-scalars.test.ts
  • packages/3-mongo-target/1-mongo-target/test/prisma6-binding.test.ts
  • packages/9-public/@prisma/orm-mongo/README.md
  • packages/9-public/@prisma/orm-postgres/README.md
  • packages/9-public/@prisma/orm-sqlite/README.md
  • skills-contrib/record-upgrade-instructions/SKILL.md
  • skills/prisma-8/references/upgrade-app.md
  • skills/prisma-8/references/upgrade-extension.md
  • skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.12-to-8.0.0-rc.13/instructions.md
  • skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.12-to-8.0.0-rc.13/instructions.md
  • test/integration/scripts/emit-fixture-configs.mjs
  • test/integration/test/cli-journeys/prisma6-source.e2e.test.ts
  • test/integration/test/fixtures/cli/cli-e2e-test-app/fixtures/mongo-cli-journeys/prisma6-schema.prisma
  • test/integration/test/fixtures/contract.d.ts
  • test/integration/test/mongo/prisma6-source/_fixture/prisma.config.ts
  • test/integration/test/mongo/prisma6-source/_fixture/schema.prisma
  • test/integration/test/mongo/prisma6-source/int-storage.test.ts
  • test/integration/test/sql-builder/fixtures/generated-no-pgvector/contract.d.ts
  • upgrade-instructions/pending/contract-dts-imports-only-used-types/extension/instructions.md
  • upgrade-instructions/pending/earlier-prisma-owns-the-schema/app/instructions.md
  • upgrade-instructions/pending/prisma6-bytes-objectid-is-hex/app/instructions.md
  • upgrade-instructions/pending/prisma6-int-is-a-long/app/instructions.md
💤 Files with no reviewable changes (4)
  • packages/1-framework/3-tooling/cli/test/orm/init-prisma7-inputs.test.ts
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/composite-index-path-parse-error/expected-diagnostics.json
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/README.md
  • packages/2-mongo-family/2-authoring/contract-prisma6/test/fixtures/composite-index-path-parse-error/schema.prisma

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The pull request adds Prisma 6 MongoDB schema detection and side-by-side setup, external schema-owner handling, dotted-path parsing, MongoDB codec mappings, generated contract import filtering, and supporting tests and documentation.

Changes

Prisma 6 MongoDB and schema ownership

Layer / File(s) Summary
Schema ownership and CLI enforcement
packages/1-framework/..., packages/2-mongo-family/..., packages/2-sql/...
Contract sources can declare a schema owner. Verification and migration commands provide owner-specific actions or refuse schema changes with MIGRATION.SCHEMA_OWNED_ELSEWHERE.
Prisma 6 detection and initialization
packages/1-framework/3-tooling/cli/...
orm init detects Prisma 6 MongoDB schemas, supports conventional and package.json schema paths, generates side-by-side setup actions, installs MongoDB peer packages, and preserves module settings for existing projects.
Dotted paths and diagnostics
packages/1-framework/2-authoring/..., packages/2-mongo-family/..., packages/2-sql/...
The parser exposes dotted paths through PathExprAst. MongoDB and SQL readers classify dotted block values and index arguments with targeted diagnostics.
MongoDB codecs and integration tests
packages/3-mongo-target/..., test/integration/test/mongo/...
Plain Prisma 6 MongoDB Int fields use int64 storage, native-type mappings are declared, fractional integer values produce migration guidance, and integration tests cover BSON reads and writes.
Generated contracts and documentation
packages/*/contract.d.ts, docs/..., skills/..., upgrade-instructions/...
Generated declarations omit unused codec imports. Release notes, references, upgrade instructions, and transition guides document the new behavior.

Priority: ➖ Normal

Estimated code review effort: 5 (Critical) | ~90 minutes

Possibly related PRs

  • prisma/orm#30287: Introduced the Prisma 7 contract-source workflow extended here with schema ownership and command refusals.

Suggested reviewers: sevinf

Merge Risk: ⚪ Minimal · up to 082e9

The change adds Prisma 6 MongoDB detection, schema-owner guidance, dotted-path parsing, and integer codec mapping. No merge-blocking issue was found. The author reports package, integration, e2e and journey tests passing, and merge depends on #30519 as noted in the description.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 082e9

The ownership checks prevent conflicting schema changes, and integer reads reject incompatible values rather than silently converting them. Existing applications must accommodate bigint values and older fractional data. No introduced security defect was established, but configuration inheritance and some recovery paths remain unverified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The ownership policy operates at the configured project and database-command scope, not at a tenant or row authorization boundary. The selected database connection and existing operator authority determine the database exposure.

Trust Boundaries and Controls

  • observed — Configuration is evaluated before ownership metadata is consumed and already permits provider functions and runtime descriptors. Owner-supplied advice is encoded as a user-choice label; the executable next action is the fixed db sign command.
  • inferred — Schema-owner metadata is a local workflow safeguard, not authenticated ownership or a database access-control mechanism. A party able to replace executable project configuration already controls a stronger trust boundary than this metadata field.

Resilience and Maintainability Implications

  • observed — The int64 boundary rejects fractional and unsafe numeric wire values instead of silently coercing them. Encoding requires bigint with signed-range validation, and JSON decoding requires decimal integer text within the signed 64-bit range.
🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The linked issue [#30473] covers Prisma 6 MongoDB detection and initialization guidance. The PR also changes schema-owner refusal and signing workflows, Prisma 6 codec and BSON mappings, dotted-path p… Split the unrelated schema-owner, codec, parser, emitter, upgrade, and general documentation changes into separate PRs, or link active issues that directly require each change. Keep this PR focused on Prisma 6 MongoDB schema detection and i…
Docstring Coverage ❓ Inconclusive Docstring coverage is 61.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 54 functions across 50 files. (118 skippe… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue [#30473] requires orm init to detect a Prisma 6 MongoDB schema and guide the user toward prisma6Schema. The PR adds CLI.INIT_PRISMA6_SCHEMA_FOUND, Prisma 6 schema detection across supporte…
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main Prisma 6 MongoDB compatibility fix and the rc.13 upgrade-guide correction. It is specific and related to the primary changes.
Full details: Out of Scope Changes check

Explanation

The linked issue [#30473] covers Prisma 6 MongoDB detection and initialization guidance. The PR also changes schema-owner refusal and signing workflows, Prisma 6 codec and BSON mappings, dotted-path parsing and index diagnostics, contract import generation, upgrade instructions, and broad MongoDB documentation. These changes are not required to detect the schema or print prisma6Schema guidance. Supporting initialization tests and setup documentation are in scope, but the unrelated feature changes expand the PR beyond the linked issue.

Resolution

Split the unrelated schema-owner, codec, parser, emitter, upgrade, and general documentation changes into separate PRs, or link active issues that directly require each change. Keep this PR focused on Prisma 6 MongoDB schema detection and initialization guidance.

Full details: Docstring Coverage

Explanation

Docstring coverage is 61.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 54 functions across 50 files. (118 skipped: 64 unsupported, 54 over the file limit.)

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@prisma/orm-extension-arktype-json

npm i https://pkg.pr.new/@prisma/orm-extension-arktype-json@30521

@prisma/orm-extension-middleware-cache

npm i https://pkg.pr.new/@prisma/orm-extension-middleware-cache@30521

@prisma/orm-extension-paradedb

npm i https://pkg.pr.new/@prisma/orm-extension-paradedb@30521

@prisma/orm-extension-pgvector

npm i https://pkg.pr.new/@prisma/orm-extension-pgvector@30521

@prisma/orm-extension-postgis

npm i https://pkg.pr.new/@prisma/orm-extension-postgis@30521

@prisma/orm-extension-supabase

npm i https://pkg.pr.new/@prisma/orm-extension-supabase@30521

@prisma/orm-family-mongo

npm i https://pkg.pr.new/@prisma/orm-family-mongo@30521

@prisma/orm-family-sql

npm i https://pkg.pr.new/@prisma/orm-family-sql@30521

@prisma/orm-framework

npm i https://pkg.pr.new/@prisma/orm-framework@30521

@prisma/orm-mongo

npm i https://pkg.pr.new/@prisma/orm-mongo@30521

@prisma/orm-postgres

npm i https://pkg.pr.new/@prisma/orm-postgres@30521

@prisma/orm-sqlite

npm i https://pkg.pr.new/@prisma/orm-sqlite@30521

@prisma/orm-target-mongo

npm i https://pkg.pr.new/@prisma/orm-target-mongo@30521

@prisma/orm-target-postgres

npm i https://pkg.pr.new/@prisma/orm-target-postgres@30521

@prisma/orm-target-sqlite

npm i https://pkg.pr.new/@prisma/orm-target-sqlite@30521

@prisma/orm-toolchain

npm i https://pkg.pr.new/@prisma/orm-toolchain@30521

commit: d9c6631

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
postgres / no-emit 209.57 KB (+0.05% 🔺)
postgres / emit 187.88 KB (+0.01% 🔺)
mongo / no-emit 195.06 KB (+0.26% 🔺)
mongo / emit 174.38 KB (+0.26% 🔺)
cf-worker / no-emit 264.93 KB (+0.03% 🔺)
cf-worker / emit 240.75 KB (+0.05% 🔺)

wmadden-electric and others added 5 commits September 30, 2026 07:26
A contract source declared schemaOwner, and the CLI branched on it: db
verify, db sign and migration status gave the owner's advice, and db
init, db update, db migrate, migration plan and migration new refused
with MIGRATION.SCHEMA_OWNED_ELSEWHERE. That made the framework and CLI
aware of which tool authored the contract source, which ADR 252 rules
out: a new source adds a package and a binding, and no branch in the
CLI, the control plane or the framework.

The field, its type, the config-loader schema entry, the CLI branches,
the error code, the ADR bullet, the subsystem-doc paragraph, the
pending upgrade entry and their tests are gone, and the CLI's drift
advice is the source-agnostic wording on main again. The Prisma 6 and
Prisma 7 sections of the Mongo and Postgres READMEs describe the
workflow instead: apply the change with the earlier Prisma rather than
the db update the CLI suggests, then contract emit and db sign. Both
providers' tests now check that the source carries only its format,
inputs and loader.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prisma 6 stores a plain Int (and Int @db.Long) as a BSON long and
presents it as a JavaScript number. Mapping it to mongo/int64@1 changed
its application type to bigint. As Postgres has BigIntNumber
(pg/int8number@1) and SQLite sqlite/bigintnumber@1, Mongo now has
mongo/int64Number@1: it stores a BSON long and reads and writes a
number within +-(2^53 - 1), refusing a non-integer or a value outside
that range with RUNTIME.ENCODE_FAILED or RUNTIME.DECODE_FAILED. Decode
takes what the driver returns for a long under every option (number,
Long, bigint), and a stored fractional double gets the repair message.

The codec is named by one token across its id, the PSL type
(Int64Number) and the TS helper (field.int64Number()). It is
registered in the target, the adapter's scalar types and the TS
builder's codec type copy; a new type test checks that copy against
the target's codec types for every helper. The Prisma 6 binding maps
Int and Int @db.Long to it; Int @db.Int stays mongo/int32@1 and BigInt
stays mongo/int64@1. The binding test now also checks that each
Prisma 6 integer decodes to the type the Prisma 6 client presents.

The prisma6-int-is-a-long entry keeps the fractional-value listing and
repair, drops the bigint type-change steps, and says Prisma 8 now
writes these fields as long. The READMEs, scalar-types.md, the codec
authoring guide and the error reference describe the new codec.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ventory

A stored double that is a whole number past the safe integer range, or
not finite, is refused like a long past that range; a codec test now
covers it. The Mongo execution-stack integration test lists every
codec the adapter registers, which now includes mongo/int64Number@1.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…not as a schema owner's

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wmadden-electric wmadden-electric changed the title fix: read real Prisma 6 MongoDB schemas, leave an earlier Prisma's database to it, and correct the rc.13 upgrade guide fix: read real Prisma 6 MongoDB schemas as Prisma 6 stores them, set up side-by-side projects in orm init, and correct the rc.13 upgrade guide Sep 30, 2026
@wmadden-electric wmadden-electric changed the title fix: read real Prisma 6 MongoDB schemas as Prisma 6 stores them, set up side-by-side projects in orm init, and correct the rc.13 upgrade guide fix(mongo): read unmodified Prisma 6 schemas with Prisma 6's storage and types, and correct the rc.13 upgrade guide Sep 30, 2026
The Mongo CodecTypes maps now list each codec's traits (#30519); mongo/int64Number@1
joins both copies with 'equality' | 'order' | 'numeric', and the traits test lists it.
The defineConfig test that lists the Mongo scalar types now includes Int64Number.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…writes a Prisma 6 Int in lists and composites as a long

The codec now lives beside mongo/int64@1 in bson-scalar-helpers.ts and codecs.ts,
sharing the refusal helpers, and its messages take the Mongo form: "value must be
an integer from -9007199254740991 to 9007199254740991; received 2.5". A bigint in
any Mongo refusal is written with its n suffix, so passing 9n no longer reads as
"received 9". The ORM and the runtime add the field, collection and document _id.

The branch's own parity type test is removed: main's test compares the two
CodecTypes copies whole, and fails when the builder's int64Number entry drifts.

The Prisma 6 Int storage test now creates and reads the Int[] field, the embedded
address and the addresses list through the ORM, checks each stored element is a
long, increments and multiplies an Int, and checks the messages that name the
field on write and the document _id on read.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
wmadden pushed a commit that referenced this pull request Sep 30, 2026
## Release

`8.0.0-rc.13` → `8.0.0-rc.14`

See
[`docs/oss/versioning.md`](https://github.com/prisma/orm/blob/main/docs/oss/versioning.md)
for the versioning policy and the release procedure.

## What to review

- **Release notes:**
[`docs/releases/v8.0.0-rc.14.md`](https://github.com/prisma/orm/blob/release/8.0.0-rc.14/docs/releases/v8.0.0-rc.14.md).
This file becomes the body of the GitHub Release. `CHANGELOG.md` carries
the same text. The notes cover the 15 pull requests merged since
`v8.0.0-rc.13`; internal refactors, process notes and documentation-only
changes are left out.
- **Upgrade guides:** the [app
guide](https://github.com/prisma/orm/blob/release/8.0.0-rc.14/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.13-to-8.0.0-rc.14/instructions.md)
and the [extension
guide](https://github.com/prisma/orm/blob/release/8.0.0-rc.14/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.13-to-8.0.0-rc.14/instructions.md).
They are assembled from the 5 pending fragments, which moved unchanged
to `upgrade-instructions/releases/8.0.0-rc.13-to-8.0.0-rc.14/sources/`.

## What changed

- The `version` of every workspace `package.json`, and the `workspace:`
specifiers that name it, in the package files and in `pnpm-lock.yaml`.
- The `library_version` stamp in `skills/prisma-8/SKILL.md`.
- The extension version stamp in the Supabase `contract.json` and
`contract.d.ts` artefacts.
- The upgrade guides, the archived fragments, the release notes and the
changelog.

## How the guides were assembled

- Order: package changes first (`@prisma/cli-engine` pin,
`temporal-polyfill` peer), then the serverless client, date and time
defaults, and the Mongo ORM.
- Every line of every fragment is in a guide; I checked this by script.
- The `temporal-polyfill-peer` fragments had their own `#` title. The
guides drop it, so each change sits under a heading that names its
change id, as every other entry does.
- The app guide ends with the `contract-artifacts-restamp` entry, as the
previous app guides do.
- The fragments had no scripts or assets.
`serverless-connect-returns-connection/extension` declared `changes: []`
and adds nothing.

## Checks run locally

- `pnpm check:upgrade-coverage --mode publish --prev v8.0.0-rc.13 --head
HEAD` passes.
- `pnpm check:release-notes --mode pr --prev origin/main` passes.
- `pnpm lint:docs` passes.

## Pull requests that may merge first

Four approved pull requests add pending fragments: #30521, #30530,
#30512 and #30331. If one merges before this one, I merge `main` into
this branch, add its fragment to the guides, archive it, and add its
change to the notes. CI checks the merged tree, so a leftover fragment
fails the merge queue.

## Merging this pull request ships the release

The push to `main` carries the new root `version`. The `Publish to npm`
workflow detects the change, publishes `8.0.0-rc.14` under the dist-tag
`latest`, and creates a matching GitHub Release, marked as a
pre-release.

## Docs site

The matching docs-site pull request follows in prisma/web. It merges
after this release is published.

Agent: pasteur-43


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Postgres serverless connections now expose ORM and transaction
helpers. Optional cursor batching and multi-file schema support in the
language server are also available.
* **Bug Fixes**
* Improved MongoDB encoding, decoding, query, and upsert behavior; added
Node 24 date/time support and made SQLite date defaults consistent.
* Improved namespace-aware relation resolution, policy placement,
database-sign guidance, and upgrade instructions.
* **Breaking Changes**
* Updated Postgres connection and cursor behavior, canonical date/time
defaults and validation, MongoDB result shapes and codec requirements,
and extension and contract diagnostics.

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

---------

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden
wmadden added this pull request to the merge queue Sep 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Sep 30, 2026
…isma6-guides

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	packages/2-mongo-family/2-authoring/contract-prisma6/README.md
#	packages/2-sql/2-authoring/contract-prisma7/test/provider.test.ts
@wmadden
wmadden added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit cc4d10e Sep 30, 2026
27 checks passed
@wmadden
wmadden deleted the mongo-qa-prisma6-guides branch September 30, 2026 19:16
wmadden-electric added a commit to prisma/web that referenced this pull request Oct 5, 2026
Checked every Prisma ORM claim against the v8.0.0-rc.14 tag of
prisma/orm and fixed the ones the code does not support:

- orm init --from-prisma7-schema writes prisma.config.ts in the project
  root, not in src/prisma/. Reading a Prisma 7 schema works on
  PostgreSQL projects only.
- Hold the MongoDB Prisma 6 paragraph: the released @prisma/orm-mongo
  cannot read ordinary Prisma 6 schemas until prisma/orm#30521 ships.
- The command is db migrate, not migrate.
- Only the CLI dropped defineConfig; the one from
  @prisma/orm-postgres/config keeps its name.
- Complete the postgresServerless upgrade steps, the // use prisma-8
  behaviour for a single file, and which formatter rewrites the old
  header.
- Add the breaking changes the list missed (config path resolution and
  inheritance, client-side createdAt, enum sort order, canonical date
  defaults, contract re-emit, db.prepare callbacks, TypeScript defaults,
  MongoDB Json), the .defaultSql deprecation, and five missing fixes.
- Recommend prisma@7 over prisma@prev, as the release status page does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
ankur-arch added a commit to prisma/web that referenced this pull request Oct 5, 2026
* docs(site): add changelog entry 2026-10-02

Covers merged PRs 2026-08-28 to 2026-10-02 across the loggy-core repos.
Highlights: agent enrollment with a per-agent credential and approval
policy, Prisma Compute tools in the Prisma MCP server, and Prisma ORM 8
reading an existing Prisma 7 schema. Also the Accelerate retirement
(December 1, 2026), the Prisma Postgres Early Access database deadline
(November 1, 2026), the Prisma ORM 8 breaking changes from rc.9 to
rc.14, and Postgres full-text search.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(site): tighten the 2026-10-02 entry and lead with the biggest changes

Rewrites the title and the headline section headings as outcomes, splits
the opening into the news and the two dates that need action, and orders
the headline sections, the action list, and the fixes by impact.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(site): rewrite the 2026-10-02 entry to explain each change

The entry read like a spec: clipped sentences, bold labels on most
bullets, and vocabulary from the release notes. This pass follows the
docs-reader-review skill. Headline and product sections are now
paragraphs that start from the reader's situation, terms such as
contract, promote, and Composer are explained where they first appear,
and repeated statements are cut. Three cold-reader rounds.

Also corrects four claims from review: the approval policy covers the
agent's API requests and not deploys started by a push, orm init
installs a package before its schema check, environment values are
edited in place, and websearchToTsquery is described by what it accepts.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(site): correct the Prisma ORM claims in the 2026-10-02 entry

Checked every Prisma ORM claim against the v8.0.0-rc.14 tag of
prisma/orm and fixed the ones the code does not support:

- orm init --from-prisma7-schema writes prisma.config.ts in the project
  root, not in src/prisma/. Reading a Prisma 7 schema works on
  PostgreSQL projects only.
- Hold the MongoDB Prisma 6 paragraph: the released @prisma/orm-mongo
  cannot read ordinary Prisma 6 schemas until prisma/orm#30521 ships.
- The command is db migrate, not migrate.
- Only the CLI dropped defineConfig; the one from
  @prisma/orm-postgres/config keeps its name.
- Complete the postgresServerless upgrade steps, the // use prisma-8
  behaviour for a single file, and which formatter rewrites the old
  header.
- Add the breaking changes the list missed (config path resolution and
  inheritance, client-side createdAt, enum sort order, canonical date
  defaults, contract re-emit, db.prepare callbacks, TypeScript defaults,
  MongoDB Json), the .defaultSql deprecation, and five missing fixes.
- Recommend prisma@7 over prisma@prev, as the release status page does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

* docs(site): calmer prose and presentation for the 2026-10-02 entry

Rewrite the entry so each section leads with what the reader gets, in
plain sentences without setup-and-reveal phrasing. Commands, dates,
migration steps, and PR links are unchanged; "contract" and "TypeScript
contract" are now defined where they first appear, and the Fixes list
is grouped under h3 product headings. Drop the Builder's Day section.

Entry page: a larger lede paragraph, a hairline above each h2, quieter
h3s, and a toned-down inline-code chip scoped to .changelog-prose so
identifier-heavy bullets stop shouting.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: willbot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

orm init does not detect a Prisma 6 MongoDB schema

2 participants