Migrating to Prisma 6.4.0
Version 6.4.0 introduces 1 breaking change. This guide details how to update your code.
Released: 2/18/2025
1
Breaking Changes
3
Migration Steps
6
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
prisma.config.tsfindManystring_containsstring_starts_withstring_ends_withmodeBreaking Changes
●Issue #1
When using the new prisma.config.ts, the Prisma CLI no longer automatically loads environment variables from .env files. Users must manually load them using packages like dotenv.
Migration Steps
- 1To use the new configuration file, create a prisma.config.ts in your project root.
- 2Set 'earlyAccess: true' within the prisma.config.ts export.
- 3If migrating from .env files to prisma.config.ts, install 'dotenv' and manually call config() within the TS configuration file to maintain environment variable access.
Release Summary
Prisma 6.4.0 introduces a TypeScript-based configuration file (Early Access), case-insensitive filtering for JSON data, and performance optimizations for CockroachDB migrations.
Need More Details?
View the full release notes and all changes for Prisma 6.4.0.
View Full Changelog