---
title: "@prisma/adapter-pg 7.10.0 Breaking Changes on npm"
description: "What each @prisma/adapter-pg release removed, renamed or changed: 48 breaking changes in 6 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@prisma/adapter-pg
last_updated: 2026-12-04
---

# @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

Latest version `7.10.1`, released October 15, 2026. [Source repository](https://github.com/prisma/orm)

Its 6.0.0 release requires Node.js 18.18.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [6.0.0](#v-6-0-0) to [7.10.0](#v-7-10-0): 32 breaking changes in 4 versions.
- From [3.0.1](#v-3-0-1) to [7.10.0](#v-7-10-0): 39 breaking changes in 5 versions.

## @prisma/adapter-pg 7.10.0 breaking changes

@prisma/adapter-pg 7.10.0, released August 25, 2026: 1 breaking change.

- **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](https://github.com/prisma/orm/releases/tag/7.10.0)

## @prisma/adapter-pg 7.9.0 breaking changes

@prisma/adapter-pg 7.9.0, released July 20, 2026: 3 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](https://github.com/prisma/orm/releases/tag/7.9.0)
- **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](https://github.com/prisma/orm/releases/tag/7.9.0)
- **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](https://github.com/prisma/orm/releases/tag/7.9.0)

## @prisma/adapter-pg 7.6.0 breaking changes

@prisma/adapter-pg 7.6.0, released March 27, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/@prisma/adapter-pg/v/7.6.0)

## @prisma/adapter-pg 7.0.0 breaking changes

@prisma/adapter-pg 7.0.0, released November 19, 2025: 27 breaking changes.

- **Removed**  

Projects using MongoDB must stay on Prisma 6 until a future release adds support. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `BinaryEngine`  

The long-running executable binary engine (engineType binary) is gone. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `DataProxyEngine`  

Accelerate now uses a new RemoteExecutor instead of these engines. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `datasource.directUrl`  

The option is no longer needed and has been removed from schema.prisma. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `generator.runtime`  

The react-native runtime option is no longer accepted in the generator block. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `LibraryEngine`  

The Node-API client engine (engineType library) is gone. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `metrics`  

Get metrics from the underlying driver adapter, such as the Pool metric from the Postgres driver. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `new PrismaClient`  

Passing datasources to PrismaClient is no longer supported. Pass a driver adapter or accelerateUrl instead. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)
- **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](https://github.com/prisma/orm/releases/tag/7.0.0)
- **Removed** `prisma generate --accelerate`  

This flag no longer exists. Remove it from scripts. [github.com](https://github.com/prisma/orm/releases/tag/7.0.0)

And 17 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @prisma/adapter-pg 6.0.0 breaking changes

@prisma/adapter-pg 6.0.0, released November 28, 2024: 7 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](https://github.com/prisma/orm/releases/tag/6.0.0)
- **Removed** `NotFoundError`  

Code that catches NotFoundError must check for PrismaClientKnownRequestError with error code P2025 instead. [github.com](https://github.com/prisma/orm/releases/tag/6.0.0)
- **Renamed** `Buffer`  

Fields of type Bytes are now represented as Uint8Array. Replace Buffer types and values with Uint8Array in your code. [github.com](https://github.com/prisma/orm/releases/tag/6.0.0)
- **Renamed** `fullTextSearch`  

On PostgreSQL, the fullTextSearch preview feature is replaced by fullTextSearchPostgres. Update the previewFeatures list in your schema. [github.com](https://github.com/prisma/orm/releases/tag/6.0.0)
- **Behavior changed**  

Models named async, await or using are no longer allowed. Rename such models in your Prisma schema. [github.com](https://github.com/prisma/orm/releases/tag/6.0.0)
- **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](https://github.com/prisma/orm/releases/tag/6.0.0)
- **Configuration changed**  

The minimum supported TypeScript version is now 5.1.0. Upgrade TypeScript before upgrading Prisma ORM. [github.com](https://github.com/prisma/orm/releases/tag/6.0.0)

## @prisma/adapter-pg 3.0.1 breaking changes

@prisma/adapter-pg 3.0.1, released October 4, 2023: 9 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](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Removed** `count`  

The deprecated non-prefixed aggregate fields are gone; prefix count, max, min, avg and sum with an underscore. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Behavior changed** `@@unique`  

Constraint and index naming defaults change; make conscious choices about names or introspect existing ones. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Behavior changed** `$executeRaw`  

Calling $executeRaw with a plain string is no longer safe; use tagged templates or the Unsafe functions. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Behavior changed** `$queryRaw`  

Calling $queryRaw with a plain string is no longer safe; use tagged templates or the Unsafe functions. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)
- **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](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Behavior changed** `nApi`  

The Node-API library engine is now the default; the nApi preview flag should be removed from previewFeatures. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Behavior changed** `referentialActions`  

Default referential action behavior changes, so cascading deletes and updates may now delete more data; review your schema. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)
- **Behavior changed** `seed`  

Seed scripts are no longer discovered automatically; add the script to prisma.seed in package.json and adapt it. [github.com](https://github.com/prisma/orm/releases/tag/3.0.1)

## Related packages

- [prisma](https://since.dev/packages/npm/prisma.md)
- [@prisma/client](https://since.dev/packages/npm/@prisma/client.md)
- [@prisma/adapter-planetscale](https://since.dev/packages/npm/@prisma/adapter-planetscale.md)
- [@prisma/adapter-better-sqlite3](https://since.dev/packages/npm/@prisma/adapter-better-sqlite3.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
