prisma-upgrade-v7

Guide Prisma v6 to v7 migrations with prisma.config.ts and driver adapters.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prisma v6 to v7 migration introduces breaking changes across configuration, client generation, and driver adapters. This guide helps teams upgrade safely and maintain compatibility.

Core Features & Use Cases

  • Provides an end-to-end migration path from v6 to v7, including generator changes, prisma.config.ts migration, and driver adapter setup.
  • References related topics (esm-support, prisma-config, env-variables, and removed-features) for in-depth understanding.
  • Suitable for upgrading existing Prisma projects and troubleshooting v7 issues across different environments.

Quick Start

Follow the migration steps to upgrade your project from Prisma v6 to v7, configure the new prisma.config.ts, install the required driver adapters, and regenerate the client.

Frequently Asked Questions about prisma-upgrade-v7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate the datasource block to prisma.config.ts in Prisma v7?

To migrate the datasource block to prisma.config.ts in Prisma v7, you must relocate your datasource configuration from the schema file into the new prisma.config.ts file, ensuring environment loading and driver adapters are correctly configured during the upgrade.

What breaking changes require a Prisma v6 to v7 migration?

Prisma v6 to v7 migration is required due to breaking changes across configuration, client generation, and driver adapters, specifically involving generator changes, output relocation, and the transition of datasource blocks to prisma.config.ts.

How do I configure driver adapters when upgrading to Prisma v7?

To configure driver adapters when upgrading to Prisma v7, follow the structured migration guide to install the required driver adapters, update your prisma.config.ts, and regenerate the client to maintain database connectivity.

How do I resolve esm/cjs module format issues after a Prisma v7 upgrade?

Resolving esm/cjs module format issues after a Prisma v7 upgrade involves adjusting your project setup to support the new generator output relocation and ensuring your environment loading matches the expected esm/cjs configuration standards.

Can I use my existing Prisma v6 project setup with the v7 generator changes?

Existing Prisma v6 project setups require modification for v7 generator changes, specifically relocating the generator output and migrating environment variables and datasource blocks to the new prisma.config.ts to maintain compatibility.

Why does my Prisma v7 migration fail during client regeneration?

Prisma v7 migration failures during client regeneration often stem from incorrect prisma.config.ts configuration, missing driver adapters, or unresolved esm/cjs module format conflicts within your project setup.