Skip to main content
Run any Skill in Manus
with one click

prisma-fleet-migration

Stars0
Forks0
UpdatedJune 12, 2026 at 10:43

Migrate one or many repos from Prisma 5 to Prisma 7. The v7 change requires a driver adapter (e.g., `@prisma/adapter-pg`) for `new PrismaClient()`, which breaks build-time instantiation (Next.js page-data collection, monorepo CI). Solution: lazy Proxy pattern that defers `PrismaClient` construction until the first method call. Covers: schema datasource `url` removal → `prisma.config.ts`, lazy proxy per file role, lockfile regen with exact pinning (npm resolves `^7.8.0` to 5.22.0), `--legacy-peer-deps` for Capacitor repos, force-push for branch-protected repos. From a real 6-repo fleet migration.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly