prisma-upgrade-v7

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

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

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 the full migration. ## Core Features & Use Cases - Schema and Generator Migration: Switch from prisma-client-js to the prisma-client generator with a required output path and updated import 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 PostgreSQL Node.js app to Prisma 7 follows the step-by-step guide to update packages, configure the pg adapter, create prisma.config.ts, and fix import errors after regeneration. ## Quick Start Ask the AI to upgrade your Prisma v6 project to Prisma 7 and walk through the generator, driver adapter, and prisma.config.ts changes.

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 driver adapter should I use with Prisma 7?▼

Prisma 7 requires driver adapters for SQL providers: @prisma/adapter-pg for PostgreSQL, @prisma/adapter-mariadb for MySQL, @prisma/adapter-better-sqlite3 for SQLite, plus adapters for Neon, PlanetScale, Turso, D1, and SQL Server. Pass the adapter instance to new PrismaClient({ adapter }).

Does Prisma 7 support MongoDB?▼

No. There is no published MongoDB @prisma/adapter-* package in Prisma 7.6.0, and the v7 SQL client path does not fit MongoDB. MongoDB projects should remain on the latest Prisma 6.x release instead of migrating.

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

Prisma v7 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. Bun loads .env files automatically.

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 imported from the generated client entrypoint.

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. Instead pass accelerateUrl to PrismaClient and apply the withAccelerate extension from @prisma/extension-accelerate.