prisma-upgrade-v7

Migrates Prisma ORM projects from v6 to v7 across generators, adapters, and configuration.

Updated Jul 26, 2026
One-click install
npx skills add https://github.com/PrimotionStudio/turbo-repo-is-cool --skill prisma-upgrade-v7-primotionstudio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/PrimotionStudio/turbo-repo-is-cool/tree/main/packages/db/.agents/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/PrimotionStudio/turbo-repo-is-cool --skill prisma-upgrade-v7-primotionstudio

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 you through every required migration step. ## Core Features & Use Cases - Step-by-step migration path: Covers package updates, ESM or CommonJS module format selection, TypeScript configuration, schema generator changes, and client instantiation. - Driver adapter setup: Provides installation and configuration for PostgreSQL, MySQL, SQLite, SQL Server, Neon, PlanetScale, Turso, D1, and Prisma Postgres adapters. - Removed feature replacements: Shows how to replace $use middleware with Client Extensions, Prisma.validator with TypeScript satisfies, and handle removed CLI flags and metrics. - Use Case: You upgrade a Next.js app to Prisma 7 and hit "Cannot find module" errors; this Skill walks you through setting the generator output path, creating prisma.config.ts, installing @prisma/adapter-pg, and fixing imports. ## Quick Start Ask the assistant to upgrade my Prisma project from v6 to v7 and fix any resulting errors.

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 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 new projects. It requires an explicit output directory and produces client, browser, models, and enums entrypoints instead of generating into node_modules.

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 standard v7 SQL migration path.

Why do I get driver adapter errors after upgrading Prisma?

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

How do I use Prisma Accelerate with Prisma 7?

Keep your prisma:// or prisma+postgres:// URL and pass it as accelerateUrl to PrismaClient, then apply the withAccelerate extension from @prisma/extension-accelerate. Do not pass Accelerate URLs to driver adapters, since they expect direct connection strings.

What replaced Prisma.validator and $use middleware in v7?

Prisma.validator is replaced by TypeScript's satisfies operator applied to generated types like Prisma.UserSelect. The $use middleware API is replaced by Client Extensions using $extends with query hooks for logging, soft deletes, and similar patterns.