# What changed in @prisma/generator

> 17 changes in @prisma/generator 6 to 7 from its official release notes, upgrade guides and advisories: 14 breaking. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@prisma/generator/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @prisma/generator 7

### Breaking changes

- Generated TypeScript enum values use schema names rather than mapped database values, matching Prisma ORM v6 behavior. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The generator output field is required, and Prisma Client is no longer generated in node_modules by default. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- migrate dev and db push no longer run prisma generate automatically; run it explicitly to generate Prisma Client. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)

### Tooling

- Use the new prisma-client generator provider, which uses the Rust-free client; prisma-client-js is planned for removal in a future release. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)

## @prisma/generator 6

### Breaking changes

- async, await, and using can no longer be used as model names. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- Generated types for Bytes fields now use Uint8Array instead of Buffer; update code that relies on Buffer-typed fields. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- On PostgreSQL, implicit many-to-many relation tables now use a primary key on columns A and B instead of a unique index; the next migration includes ALTER TABLE statements for these tables. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- Prisma ORM v6 requires Node.js 18.18.0, 20.9.0, or 22.11.0; Node.js 16, 17, 19, and 21 are not officially supported. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- For PostgreSQL full-text search, replace the fullTextSearch preview feature with fullTextSearchPostgres. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- Prisma ORM v6 requires TypeScript 5.1.0 or later. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)

### Behavior and default changes

- The fullTextIndex feature is generally available, so remove it from previewFeatures in the Prisma schema. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- The fullTextSearch feature is generally available for MySQL, so remove it from previewFeatures in the Prisma schema. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
