prisma-upgrade-v7

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

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/firstaxel/neon --skill prisma-upgrade-v7-firstaxel
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/firstaxel/neon/tree/main/.agents/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/firstaxel/neon --skill prisma-upgrade-v7-firstaxel

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 without missing any step. ## Core Features & Use Cases - Schema and Generator Migration: Switch from prisma-client-js to the prisma-client generator with required output paths and new client, browser, models, and enums entrypoints. - Driver Adapter Setup: Install and configure required adapters for PostgreSQL, MySQL, SQLite, Neon, SQL Server, and Prisma Postgres, including pool and SSL settings. - Config and Environment Migration: Create prisma.config.ts, move datasource URLs out of the schema, and load .env files explicitly with dotenv. - Removed Feature Replacements: Replace $use middleware with Client Extensions, Prisma.validator with TypeScript satisfies, and handle removed CLI flags and metrics. - Use Case: A team upgrading a Node.js API to Prisma 7 follows the step-by-step references to update the schema, install @prisma/adapter-pg, rewrite client instantiation, and fix import errors after running prisma generate. ## Quick Start Upgrade my Prisma project from v6 to v7 and fix all breaking changes including the generator, driver adapter, and prisma.config.ts setup.

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 such as @prisma/adapter-pg, update client imports and instantiation, then run prisma generate.

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

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

Does Prisma 7 require driver adapters?▼

Yes, Prisma 7 requires driver adapters for all SQL providers because the client no longer ships a native query engine. Install the adapter matching your database, such as @prisma/adapter-pg for PostgreSQL or @prisma/adapter-better-sqlite3 for SQLite, and pass it to PrismaClient.

Can I use Prisma 7 with MongoDB?▼

No, Prisma 7 has no MongoDB connector and no 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 natively.

How do I replace Prisma.validator in Prisma 7?▼

The prisma-client generator no longer exposes Prisma.validator, so use TypeScript's satisfies operator instead. Define your select or include object as a plain literal followed by satisfies Prisma.UserSelect or the equivalent model type.