prisma-upgrade-v7

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

7|2|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/ysfcl/GeoMorphosis --skill prisma-upgrade-v7-ysfcl
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/ysfcl/GeoMorphosis/tree/main/.windsurf/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/ysfcl/GeoMorphosis --skill prisma-upgrade-v7-ysfcl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @prisma/client, prisma, @prisma/adapter-pg, dotenv, and 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, which cause import errors and runtime failures if handled incorrectly. ## Core Features & Use Cases - Step-by-step migration path: Covers package updates, ESM or CommonJS module format selection, tsconfig changes, schema generator block updates, and prisma.config.ts creation. - Driver adapter setup: Provides installation and configuration for PostgreSQL, MySQL, SQLite, SQL Server, Neon, PlanetScale, Turso, D1, and Prisma Postgres adapters, including pool and SSL settings. - Removed feature replacements: Shows how to replace $use middleware with Client Extensions, Prisma.validator with TypeScript satisfies, and removed CLI flags with explicit commands. - Use Case: A team upgrading a Next.js app to Prisma 7 follows the guide to switch the generator to prisma-client with an explicit output path, install @prisma/adapter-pg, create prisma.config.ts with dotenv loading, and fix all client imports. ## Quick Start Ask the AI to upgrade my project from Prisma 6 to Prisma 7 and fix the resulting generator, adapter, and import 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 for your SQL database, update PrismaClient 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 directory and produces separate 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 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 do I get cannot find module errors after upgrading Prisma?▼

These errors occur when the generator output path does not match your import path or prisma generate was not run. Verify the output field in the generator block, regenerate the client, and import PrismaClient from the generated client entrypoint.

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 database connection strings.

What replaces 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 cross-cutting logic.