Change8

Migrating to Prisma 6.13.0

Version 6.13.0 introduces 1 breaking change. This guide details how to update your code.

Released: 7/29/2025

1
Breaking Changes
5
Migration Steps
6
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

defineConfigprisma.config.ts@@schemaviewfindUniqueprisma.seed

Breaking Changes

Issue #1

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

  1. 1
    Remove 'earlyAccess: true' from prisma.config.ts if previously used.
  2. 2
    Remove 'multiSchema' from previewFeatures in the generator block of your Prisma schema.
  3. 3
    Move 'prisma.seed' configuration from package.json to prisma.config.ts.
  4. 4
    Wrap Preview features in prisma.config.ts (like 'adapter') inside the new 'experimental' field.
  5. 5
    Remove @id, @index, @unique, and relationships from 'view' blocks in your Prisma schema to align with the new SQL views API.

Release 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.

Need More Details?

View the full release notes and all changes for Prisma 6.13.0.

View Full Changelog