StackpineEmail us

Pineflow · Migration ran locally, skipped on production

← All fixes
Ship

Migration ran locally, skipped on production

Most ORMs (Prisma, Drizzle) run migrations on the dev machine but require a manual or build-step trigger in prod. Add `prisma migrate deploy` to your Vercel build command, or use Drizzle Kit's push in a postbuild script. Test by running it once manually against prod-like staging before relying on it.

Prompt to paste
Prompt
My database migration ran locally but never applied in production. I'm using [Prisma/Drizzle] on [Vercel/...]. Show me how to wire migrations into the deploy step, for example prisma migrate deploy in the build command, and how to test it once against a staging database before I rely on it.