prisma-upgrade-v7

Migrates Prisma ORM projects from v6 to v7 across all breaking changes.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/manab-debnath/trello --skill prisma-upgrade-v7-manab-debnath
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/manab-debnath/trello/tree/main/packages/db/.agents/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/manab-debnath/trello --skill prisma-upgrade-v7-manab-debnath

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Upgrading from Prisma ORM v6 to v7 introduces breaking changes around the new prisma-client generator, required driver adapters, prisma.config.ts, explicit environment loading, and new generated client entrypoints. This Skill provides a complete migration guide so you avoid import errors, connection failures, and misconfigured generators after upgrading. ## Core Features & Use Cases - Step-by-step migration path: Covers package updates, ESM/CommonJS module format selection, tsconfig changes, schema generator updates, prisma.config.ts creation, driver adapter setup, and client instantiation. - Detailed reference guides: Seven reference files cover schema changes, driver adapters, ESM support, prisma.config.ts, environment variables, removed features, and Accelerate users. - Troubleshooting coverage: Addresses common post-upgrade errors such as "Cannot find module", SSL certificate failures, and connection timeout differences from v6 defaults. - Use Case: You upgrade a Next.js app to Prisma 7 and hit "driver adapter required" errors. This Skill walks you through installing @prisma/adapter-pg, creating prisma.config.ts with dotenv, updating the generator block with an explicit output path, and rewriting PrismaClient imports to the generated entrypoint. ## Quick Start Ask the AI to migrate your Prisma v6 project to v7 using this upgrade guide, starting with the schema generator and driver adapter steps.

Frequently Asked Questions about prisma-upgrade-v7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade Prisma from v6 to v7?▼

Update @prisma/client and prisma to version 7, switch the generator provider to prisma-client with an explicit output path, create prisma.config.ts, install a driver adapter for your SQL database, and update PrismaClient imports to the generated entrypoint. Then run prisma generate and test.

What is the prisma-client generator in Prisma 7?▼

The prisma-client generator is the default generator in Prisma 7, replacing the prisma-client-js workflow for current projects. It requires an explicit output path instead of generating into node_modules and produces client, browser, models, and enums entrypoints.

Does Prisma 7 require driver adapters?▼

Yes, Prisma 7 requires driver adapters for SQL providers such as PostgreSQL, MySQL, and SQLite. Install the matching adapter like @prisma/adapter-pg and pass it to PrismaClient via the adapter option instead of relying on built-in engines.

Can I use Prisma 7 with MongoDB?▼

No, Prisma 7 has no MongoDB connector and no published MongoDB driver adapter. MongoDB projects should stay on the latest Prisma 6.x release or migrate to Prisma Next instead of following the standard v7 SQL migration path.

Why does Prisma 7 not load my .env file automatically?▼

Prisma 7 removed automatic environment variable loading, so you must install dotenv and add import 'dotenv/config' as the first line of prisma.config.ts. Bun users are exempt because Bun loads .env files automatically.

How do I fix ERR_REQUIRE_ESM after upgrading to Prisma 7?▼

This error means your generated client is ESM but your app requires it as CommonJS. Either switch your project to ESM with "type": "module" in package.json, or set moduleFormat = "cjs" in the generator block and regenerate the client.