prisma-upgrade-v7

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

1|2|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-upgrade-v7-byeduarda
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2/tree/main/back/src/.windsurf/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-upgrade-v7-byeduarda

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 entire migration so nothing is missed. ## 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 updates. - Driver adapter setup: Provides installation and configuration for PostgreSQL, MySQL, SQLite, Neon, SQL Server, 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 handle removed CLI flags and metrics. - Use Case: A team upgrading a Node.js and PostgreSQL API to Prisma 7 follows the guide to switch to the prisma-client generator, install @prisma/adapter-pg, create prisma.config.ts, and fix all import errors after regenerating the client. ## Quick Start Upgrade my project from Prisma 6 to Prisma 7 and update the generator, driver adapter, and client imports accordingly.

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 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 generator in Prisma 7, replacing prisma-client-js for current projects. It requires an explicit output path and produces separate client, browser, models, and enums entrypoints instead of generating into node_modules.

Does Prisma 7 work with 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 does Prisma 7 require driver adapters?▼

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

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 keep type-safe query fragments.

Why are my environment variables not loading after upgrading to Prisma 7?▼

Prisma 7 no longer loads .env files automatically. Install dotenv and add import 'dotenv/config' as the first line of prisma.config.ts, or load variables explicitly in your application entry point.