Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

prisma-fleet-migration

Sterne0
Forks0
Aktualisiert12. Juni 2026 um 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

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

SKILL.md
readonly