Skip to main content
Exécutez n'importe quel Skill dans Manus
en un clic

prisma-fleet-migration

Étoiles0
Forks0
Mis à jour12 juin 2026 à 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

Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.

SKILL.md
readonly