prisma-upgrade-v7

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

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/Rashidrxq/SalesOrder-ERP-REMEX --skill prisma-upgrade-v7-rashidrxq
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/Rashidrxq/SalesOrder-ERP-REMEX/tree/main/sales_order/.windsurf/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/Rashidrxq/SalesOrder-ERP-REMEX --skill prisma-upgrade-v7-rashidrxq

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, mandatory driver adapters, prisma.config.ts, explicit environment loading, and new generated client entrypoints, and this Skill guides the full migration so projects do not break. ## Core Features & Use Cases - Step-by-step migration path: Covers package updates, ESM or CommonJS module format selection, tsconfig changes, schema generator updates, and client instantiation with driver adapters. - Detailed reference guides: Seven reference files cover schema changes, driver adapters, ESM support, prisma.config.ts, environment variables, removed features, and Accelerate users. - Troubleshooting and edge cases: Addresses module resolution errors, SSL certificate issues, connection pool differences, and explicitly excludes MongoDB projects from the v7 path. - Use Case: A team upgrading a PostgreSQL-backed Node.js API to Prisma 7 follows the guide to install @prisma/adapter-pg, create prisma.config.ts, update imports to the generated client entrypoint, and replace Prisma.validator with TypeScript satisfies. ## Quick Start Ask the assistant to migrate your Prisma v6 project to Prisma 7 and walk through the generator, driver adapter, and config changes.

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 client imports and instantiation. Then run prisma generate and test.

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

The prisma-client generator is the default in Prisma 7, replacing prisma-client-js 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 support MongoDB?▼

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

Why do I get driver adapter errors after upgrading Prisma?▼

Prisma 7 requires a driver adapter for SQL providers, so instantiating PrismaClient without one fails. Install the matching adapter such as @prisma/adapter-pg for PostgreSQL and pass it to the client constructor with your connection string.

Can I use Prisma 7 with CommonJS instead of ESM?▼

Yes, Prisma 7 is ESM-first but supports CommonJS by setting moduleFormat = "cjs" in the generator block. Keep your app as CommonJS and regenerate the client rather than forcing ESM on the whole project.

How do I use Prisma Accelerate with Prisma 7?▼

Pass your prisma:// or prisma+postgres:// URL as accelerateUrl to PrismaClient and extend it with @prisma/extension-accelerate. Do not pass Accelerate URLs to driver adapters, since they expect direct database connection strings.