prisma-orm-v7-skills

Outline Prisma ORM v6 to v7 migration steps and breaking changes.

Updated Nov 11, 2025
One-click install
npx skills add https://github.com/codexyzdev/codexyz --skill prisma-orm-v7-skills-codexyzdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-orm-v7-skills
Source: https://github.com/codexyzdev/codexyz/tree/main/.trae/skills/prisma-orm-v7-skills
Command: npx skills add https://github.com/codexyzdev/codexyz --skill prisma-orm-v7-skills-codexyzdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams upgrade to Prisma ORM v7 by summarizing breaking changes, migration steps, and best practices to avoid downtime and compatibility issues.

Core Features & Use Cases

  • Provides a clear upgrade checklist covering Node.js/TS requirements, ES Module migration, and datasource/config changes.
  • Highlights breaking changes and recommended project adjustments (generator client, output path, prisma.config.ts, and env loading).
  • Serves as a reference for teams planning Prisma upgrades across multiple services and CI pipelines.

Quick Start

Upgrade core packages with concrete commands and setup steps:

  • pnpm add @prisma/client@7
  • pnpm add -D prisma@7
  • Create or move configuration to prisma.config.ts and ensure the project uses ES modules (type: "module" in package.json)
  • Explicitly load environment variables (e.g., import 'dotenv/config' in prisma.config.ts)
  • Run pnpm prisma generate
  • Update Prisma Client imports to the generated output path, e.g., import { PrismaClient } from './generated/prisma/client'
  • If using migrations, run pnpm prisma migrate dev and then pnpm prisma db seed to seed data

Frequently Asked Questions about prisma-orm-v7-skills

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

FAQPage Schema
How do I upgrade Prisma ORM to v7?

To upgrade Prisma ORM to v7, update @prisma/client and prisma packages to version 7, migrate your project to ES modules by setting type: "module" in package.json, move configuration to prisma.config.ts, and run prisma generate.

What are the breaking changes in Prisma ORM v7?

Prisma ORM v7 breaking changes include migrating to ES modules, moving datasource and config to prisma.config.ts, updating generator client output paths, and explicitly loading environment variables like dotenv/config.

How do I configure prisma.config.ts for environment variables?

To configure prisma.config.ts for environment variables, create the file at your project root, explicitly import dotenv/config at the top, and define your datasource configuration to properly load environment variables across platforms.

Do I need ES modules for Prisma v7 migration?

Yes, you need ES modules for Prisma v7 migration. You must set type: "module" in your package.json file and update Prisma Client imports to the generated output path, such as ./generated/prisma/client.

What commands are needed to generate the Prisma client after upgrading?

To generate the Prisma client after upgrading, run pnpm prisma generate. If you are using database migrations, run pnpm prisma migrate dev followed by pnpm prisma db seed to apply schema changes and seed data.

Can I use Prisma v7 across multiple services and CI pipelines?

Yes, you can use Prisma v7 across multiple services and CI pipelines by applying the upgrade checklist uniformly. Update dependencies, configure prisma.config.ts, adapt ES module imports, and run prisma generate in each environment.