Prisma Migrate

Run Prisma migrations and regenerate the Prisma client safely — preflight (env file, schema location, package manager), `migrate dev` / `migrate deploy` / `generate`, and the recovery procedures for the ways `migrate dev` refuses to run (drift, edited-after-apply checksum drift, shared dev DBs, raw-SQL objects Prisma cannot model, Prisma 7's agent reset guard). Use whenever the user asks to run or create a migration, apply schema changes, regenerate the Prisma client, "update the DB", "apply the schema", "run db:migrate", or when `prisma migrate dev` complains about drift, demands a reset, hangs on a prompt, or a new enum value / model is "undefined" at runtime after a migration.

mzvonar Updated

File contents

mzvonar/claude-skills-public/tree/main/plugins/prisma/skills/prisma-migrate commit 993c2dcf61

Frequently asked questions

npx skillmds@latest add mzvonar/prisma-migrate