prisma-upgrade-v7

Migrate Prisma projects from v6 to v7 with configuration updates.

Updated Dec 5, 2024
One-click install
npx skills add https://github.com/yeohj0710/wellnessbox --skill prisma-upgrade-v7-yeohj0710
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/yeohj0710/wellnessbox/tree/main/.agents/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/yeohj0710/wellnessbox --skill prisma-upgrade-v7-yeohj0710

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prisma v6 to v7 migration presents breaking changes such as ES Module-only support, required driver adapters, and a new prisma.config.ts workflow. This skill provides a complete, practical migration guide with step-by-step actions and references to help teams implement the upgrade safely.

Core Features & Use Cases

  • Comprehensive migration roadmap covering schema changes, client generator updates, and config adjustments.
  • Reference-driven guidance for switching to prisma-client output paths and moving URLs into prisma.config.ts.
  • Real-world scenarios that cover CLI tooling, environment loading, and adapter installation.

Quick Start

Follow the outlined steps to begin upgrading a Prisma v6 project to v7 and validate the upgrade across the application.

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 Prisma from v6 to v7?

To migrate Prisma from v6 to v7, you must update the generator to prisma-client with explicit output paths, relocate database URLs to prisma.config.ts, install driver adapters, and enable ESM support.

What are the breaking changes in Prisma v7?

Prisma v7 breaking changes include ES Module-only support, required driver adapters for database connections, and a new prisma.config.ts workflow replacing previous schema configuration methods.

How do I configure prisma.config.ts during a Prisma upgrade?

Configuring prisma.config.ts involves moving datasource database URLs into the new configuration file and adjusting environment loading with dotenv to align with updated Prisma CLI tooling.

Do I need driver adapters to upgrade Prisma to v7?

Yes, driver adapters are required when upgrading to Prisma v7. You must install and configure appropriate driver adapters to establish database connections within your Node projects.

How do I update the Prisma client generator for v7?

Updating the Prisma client generator for v7 involves switching the generator provider to prisma-client and specifying an explicit output directory within your Prisma schema file.

Can I use Prisma v7 with CommonJS Node projects?

No, Prisma v7 enforces ES Module-only support, meaning CommonJS projects must be migrated to ESM. You also need to adjust environment loading with dotenv to ensure compatibility.