prisma-upgrade-v7

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

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

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, and explicit environment loading, and this Skill guides you through each migration step without missing critical changes. ## Core Features & Use Cases - Schema and Generator Migration: Updates the generator block to prisma-client with required output paths and new generated entrypoints (client, browser, models, enums). - Driver Adapter Setup: Configures required adapters for PostgreSQL, MySQL, SQLite, Neon, SQL Server, and Prisma Postgres, including pool and SSL settings. - Config and Environment Migration: Creates prisma.config.ts, sets up explicit dotenv loading, and replaces removed features like middleware, metrics, and Prisma.validator. - Use Case: You upgrade a Node.js API to Prisma 7 and hit "Cannot find module" errors; this Skill walks you through fixing the generator output path, installing @prisma/adapter-pg, and updating client instantiation. ## 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 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 like @prisma/adapter-pg, then run prisma generate and update your client imports.

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

The prisma-client generator is the default in Prisma 7, replacing prisma-client-js for new 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 require driver adapters?▼

Yes, Prisma 7 requires driver adapters for all SQL databases since the native engine binary was removed. Install the adapter matching your database, such as @prisma/adapter-pg for PostgreSQL, and pass it to the PrismaClient constructor.

Can I use Prisma 7 with MongoDB?▼

No, MongoDB projects should stay on Prisma 6.x. There is no published MongoDB driver adapter for Prisma 7, and the v7 SQL adapter model does not support MongoDB.

Why does Prisma 7 not load my .env file?▼

Prisma 7 removed automatic environment variable loading. Install dotenv and add import 'dotenv/config' as the first line of prisma.config.ts, or load variables explicitly in your application entry point.

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

The prisma-client generator no longer exposes Prisma.validator. Use TypeScript's satisfies operator instead, for example defining a select object with satisfies Prisma.UserSelect to get the same type-safe query fragments.