@prisma/adapter-pg breaking changes
@prisma/adapter-pg 7.10.0 (August 25, 2026) is its newest release with breaking changes. The first: Adapter-pg now reports database constraint names in P2002 unique violation errors in @prisma/adapter-pg 7.10.0. Every breaking API change we have recorded in @prisma/adapter-pg on npm: 48 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.10.1, released October 15, 2026. Source repository
Its 6.0.0 release requires Node.js 18.18.0 or later. Node.js end of life dates.
- From 6.0.0 to 7.10.0: 32 breaking changes in 4 versions.
- From 3.0.1 to 7.10.0: 39 breaking changes in 5 versions.
@prisma/adapter-pg 7.10.0 breaking changes
- Behavior changed
Unique constraint violations reported through P2002 by @prisma/adapter-pg now include the database constraint name. Code that parses this error's metadata may see different values. github.com
@prisma/adapter-pg 7.9.0 breaking changes
- Behavior changed
Unmapped database errors from driver adapters are now thrown as PrismaClientKnownRequestError with code P2039, so code that matched the previous generic error shape may need updating. github.com - Behavior changed
$queryRaw
$queryRaw and $executeRaw now throw a validation error when given an invalid Date, instead of silently sending null. Code that passed invalid dates will now fail and must pass valid dates. github.com - Behavior changed
XOR
The XOR type helper now rejects primitive values such as data: 5 at compile time, so TypeScript code passing such values will no longer type-check. github.com
@prisma/adapter-pg 7.6.0 breaking changes
- Signature changed
PrismaPg.constructor
Was constructor(poolOrConfig: pg.Pool | pg.PoolConfig, options?: PrismaPgOptions | undefined); now constructor(poolOrConfig: pg.Pool | pg.PoolConfig | string, options?: PrismaPgOptions | undefined). npmjs.com
@prisma/adapter-pg 7.0.0 breaking changes
- Removed
Projects using MongoDB must stay on Prisma 6 until a future release adds support. github.com - Removed
BinaryEngine
The long-running executable binary engine (engineType binary) is gone. github.com - Removed
DataProxyEngine
Accelerate now uses a new RemoteExecutor instead of these engines. github.com - Removed
datasource.directUrl
The option is no longer needed and has been removed from schema.prisma. github.com - Removed
generator.runtime
The react-native runtime option is no longer accepted in the generator block. github.com - Removed
LibraryEngine
The Node-API client engine (engineType library) is gone. github.com - Removed
metrics
Get metrics from the underlying driver adapter, such as the Pool metric from the Postgres driver. github.com - Removed
new PrismaClient
Passing datasources to PrismaClient is no longer supported. Pass a driver adapter or accelerateUrl instead. github.com - Removed
prisma db pull --local-d1
Set the local D1 database URL in the config file instead, using listLocalDatabases from the D1 adapter. github.com - Removed
prisma generate --accelerate
This flag no longer exists. Remove it from scripts. github.com
And 17 more in this version. Sign up to see every change
@prisma/adapter-pg 6.0.0 breaking changes
- Removed
Prisma ORM v6 no longer officially supports Node.js 16, 17, 19 or 21. Upgrade Node.js to a supported version before upgrading. github.com - Removed
NotFoundError
Code that catches NotFoundError must check for PrismaClientKnownRequestError with error code P2025 instead. github.com - Renamed
Buffer
Fields of type Bytes are now represented as Uint8Array. Replace Buffer types and values with Uint8Array in your code. github.com - Renamed
fullTextSearch
On PostgreSQL, the fullTextSearch preview feature is replaced by fullTextSearchPostgres. Update the previewFeatures list in your schema. github.com - Behavior changed
Models named async, await or using are no longer allowed. Rename such models in your Prisma schema. github.com - Behavior changed
The unique index on the A and B columns becomes a primary key, so the next migration alters all implicit m-n relation tables. Create a dedicated migration after upgrading. github.com - Configuration changed
The minimum supported TypeScript version is now 5.1.0. Upgrade TypeScript before upgrading Prisma ORM. github.com
@prisma/adapter-pg 3.0.1 breaking changes
- Removed
The minimum supported Node.js version is now 12.6; Node.js 12.2 through 12.5 are no longer supported. github.com - Removed
count
The deprecated non-prefixed aggregate fields are gone; prefix count, max, min, avg and sum with an underscore. github.com - Behavior changed
@@unique
Constraint and index naming defaults change; make conscious choices about names or introspect existing ones. github.com - Behavior changed
$executeRaw
Calling $executeRaw with a plain string is no longer safe; use tagged templates or the Unsafe functions. github.com - Behavior changed
$queryRaw
Calling $queryRaw with a plain string is no longer safe; use tagged templates or the Unsafe functions. github.com - Behavior changed
equals
Passing null to a Json field filter or write now raises a TypeError; use Prisma.AnyNull, Prisma.JsonNull or Prisma.DbNull. github.com - Behavior changed
nApi
The Node-API library engine is now the default; the nApi preview flag should be removed from previewFeatures. github.com - Behavior changed
referentialActions
Default referential action behavior changes, so cascading deletes and updates may now delete more data; review your schema. github.com - Behavior changed
seed
Seed scripts are no longer discovered automatically; add the script to prisma.seed in package.json and adapt it. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.