6.13.0
Breaking Changes📦 prismaView on GitHub →
⚠ 1 breaking✨ 6 features🐛 1 fixes⚡ 1 deprecations🔧 6 symbols
Summary
Prisma 6.13.0 promotes Prisma Config and Multi-schema support to General Availability and introduces externally managed tables. It also refines SQL views support by removing incompatible attributes and adds pgvector support to Prisma Postgres.
⚠️ Breaking Changes
- SQL Views: Removed support for @id, @index, and @unique attributes on view blocks. This disables findUnique queries, cursor-based pagination, writes, implicit ordering, and relationships involving views in Prisma Client/Schema.
Migration Steps
- Remove 'earlyAccess: true' from prisma.config.ts if previously used.
- Remove 'multiSchema' from previewFeatures in the generator block of your Prisma schema.
- Move 'prisma.seed' configuration from package.json to prisma.config.ts.
- Wrap Preview features in prisma.config.ts (like 'adapter') inside the new 'experimental' field.
- Remove @id, @index, @unique, and relationships from 'view' blocks in your Prisma schema to align with the new SQL views API.
✨ New Features
- Prisma Config (prisma.config.ts) is now Generally Available, supporting .js, .ts, .mjs, .cjs, .mts, and .cts extensions.
- Multi-schema support (@@schema) is now Generally Available.
- Introduced 'Externally managed tables' via prisma.config.ts to allow Prisma Client queries while ignoring them in Prisma Migrate.
- Added Early Access support for pgvector and other extensions (pg_search, pg_stat_statements, citext, pg_trgm, fuzzystrmatch, unaccent) in Prisma Postgres.
- Prisma Config now supports a .config/prisma.extension directory structure.
- Added 'experimental' field in prisma.config.ts to opt-into Preview features like driver adapters.
🐛 Bug Fixes
- Stabilized SQL views API by restricting incompatible attributes (@id, @index, @unique) and operations (writes, relationships).
🔧 Affected Symbols
defineConfigprisma.config.ts@@schemaviewfindUniqueprisma.seed⚡ Deprecations
- Defining the 'prisma.seed' command in package.json is now deprecated and triggers a warning; use prisma.config.ts instead.