@prisma/adapter-planetscale
7.10.1 · 15 Oct 2026Apache-2.069.3k / weekRepositorynpmAtom feed
5.22.0 is the newest release of 5.x.
In short
1 breaking32 new
- breaking
Release note
Today, we are excited to share the 5.15.0 stable release 🎉
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Highlights
Multi-File Prisma Schema support
Prisma ORM 5.15.0 features support for multi-file Prisma Schema in Preview.
This closes a long standing issue and does so in a clean and easy to migrate way.
To get started:
Enable the
prismaSchemaFolderPreview feature by including it in thepreviewFeaturesfield of yourgenerator.datasource db { provider = "postgresql" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" previewFeatures = ["prismaSchemaFolder"] }Create a
schemasubdirectory under yourprismadirectory.Move your
schema.prismainto this directory.
You are now set up with a multi-file Prisma Schema! Add as many or as few .prisma files to the new prisma/schema directory.
When running commands where a Prisma Schema file is expected to be provided, you can now define a Prisma Schema directory. This includes Prisma CLI commands that use the --schema option as well as defining schema via package.json
Our tooling has also been updated to handle multiple Prisma Schema files. This includes our Visual Studio Code extension and tools like database introspection, which will deposit new models in a introspected.prisma file. Existing models will be updated in the file they are found.
To learn more, please refer to our official documentation and announcement blog post. If you try out prismaSchemaFolder, please let us know!
Interesting Bug Fixes
Fix for PostgreSQL prepared statement caching for raw queries
This release fixes a nasty bug with the caching of prepared statements in raw Prisma Client queries that affected PostgreSQL when you ran the same SQL statement with differently typed paramters. This should not fail any more.
Fix for SQL Server introspection of (deprecated) CREATE DEFAULT
Our Introspection logic crashed on encountering certain multi-line CREATE DEFAULT, a deprecated way to define defaults in SQL Server. As many SQL Server users are working with established databases, this happened frequently enough that we now explicitly ignore these defaults instead of crashing.
Fix for Cloudflare D1’s lower parameter limit
Cloudflare’s D1 has a lower parameter limit than local SQLite, which caused bigger queries to fail. We adapted that limit to the D1 default for @prisma/adapter-d1, which will avoid such failures.
Fix for Cloudflare D1’s different PRAGMA support
Our generated migration SQL for SQLite did not always work for Cloudflare D1, because of differences in the supported pragmas. We adapted the SQL to work in both local SQLite and Cloudflare D1.
Fixes and improvements
Prisma Migrate
doing introspection on a SQL Server 2018 DB - for Dynamic GP get the following error.
Error: called
Result::unwrap()on anErrvalue: "Couldn't parse default value in SQL ServerSQL Server Introspection crashes on multi-line (deprecated) defaults
Prisma Client
Float number on raw query:
incorrect binary data format in bind parameter 1Can't use Prisma client in Next.js middleware, even when deploying to Node.js
Next.js app build fails when using Prisma with DB driver in Server Action
Bug: [D1] Error in performIO: Error: D1_ERROR: too many SQL variables
$executeRawUnsafe:
incorrect binary data format in bind parameter 6Bug: Error or bug using Prisma with DriverAdapter with PostgreSQL database Neon
Incompatibility with NextJS app dir, CloudFlare Pages and D1
- breaking
Language tools (e.g. VS Code)