prisma-upgrade-v7

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

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/8ReTid8/vitural_reality_test --skill prisma-upgrade-v7-8retid8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/8ReTid8/vitural_reality_test/tree/main/my-app/.windsurf/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/8ReTid8/vitural_reality_test --skill prisma-upgrade-v7-8retid8

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, required driver adapters, prisma.config.ts, explicit environment loading, and new generated client entrypoints, and this Skill guides you through each migration step without missing critical changes. ## Core Features & Use Cases - Step-by-Step Migration: Covers package updates, ESM/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 removed CLI flags with prisma.config.ts equivalents. - Use Case: You upgrade a Node.js API to Prisma 7 and hit "Cannot find module" errors; the Skill walks you through setting the generator output path, installing @prisma/adapter-pg, creating prisma.config.ts, and regenerating the client. ## Quick Start Ask the assistant to upgrade my project from Prisma 6 to Prisma 7 and fix any resulting import or connection 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 client imports and instantiation, then run prisma generate.

What is a Prisma driver adapter and why is it required in v7?

A driver adapter connects Prisma Client to your database through native Node.js drivers instead of a bundled engine binary. Prisma v7 requires adapters like @prisma/adapter-pg for PostgreSQL or @prisma/adapter-mariadb for MySQL for all SQL providers.

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 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 your generator block and regenerate the client.

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.

Can I use Prisma Accelerate with driver adapters in v7?

No, driver adapters expect direct database connection strings and fail with prisma:// or prisma+postgres:// URLs. Use the accelerateUrl option with the @prisma/extension-accelerate extension instead of an adapter.