prisma-upgrade-v7

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

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

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. ## 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 adapters for PostgreSQL, MySQL, SQLite, Neon, SQL Server, and Prisma Postgres, including pool and SSL settings. - Config and Environment Migration: Create prisma.config.ts, load .env files explicitly with dotenv, and replace removed features like $use middleware and Prisma.validator. - 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. ## Quick Start Ask the assistant to upgrade your project from Prisma 6 to Prisma 7 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 from Prisma 6 to Prisma 7?

Update @prisma/client and prisma to v7, switch the generator to prisma-client with an explicit output path, create prisma.config.ts, install a driver adapter like @prisma/adapter-pg, update client imports and instantiation, then run prisma generate.

What is the prisma-client generator in Prisma 7?

prisma-client is the default generator in Prisma 7, replacing prisma-client-js for current 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. MongoDB projects should stay on the latest Prisma 6.x release or migrate to Prisma Next rather than following the v7 SQL migration path.

Why does Prisma 7 require a driver adapter?

Prisma 7 removed the native query engine from the SQL client path, so connections go through driver adapters built on native Node.js drivers like pg or mariadb. This reduces bundle size and improves serverless and edge compatibility.

How do I fix Prisma.validator errors after upgrading?

The prisma-client generator no longer exposes Prisma.validator. Replace it with TypeScript's satisfies operator, for example defining a select object with satisfies Prisma.UserSelect imported from the generated client.

Can I use Prisma Accelerate with Prisma 7?

Yes, but do not pass prisma:// or prisma+postgres:// URLs to driver adapters. Instead instantiate the client with accelerateUrl and apply the withAccelerate extension from @prisma/extension-accelerate.