Zum Inhalt springen
Kitbay

prisma-upgrade-v7

MITAktualisiert am 10. Nov. 202680GitHub-Sterne

Prisma's migration skill for apps moving from Prisma ORM 6 to version 7 and staying there.

Was der Skill vermittelt

Prisma's migration skill for apps moving from Prisma ORM 6 to version 7 and staying there. It lists the breaking changes an agent has to handle: the new prisma-client generator and its entry points, required driver adapters, the prisma.config.ts file, loading environment variables explicitly, ESM as the default module format with a CommonJS fallback, replacing Prisma.validator, and features that were removed, such as middleware and metrics. A separate reference covers projects that use Accelerate. It is guidance with reference files; apps going to Prisma 8 use a different skill.

Funktionen

  • Upgrade a project from Prisma ORM 6 to 7
  • Switch to the prisma-client generator
  • Add the driver adapters Prisma 7 requires
  • Fix import and configuration errors after the upgrade