Prisma ORMRunbook 0/2 done
P3009
Prisma ORM Error P3009: Failed migrations found
Critical✕ Not retryable · fix the payloadDatabase
TL;DR · 10-second read
A previous migrate deploy failed halfway and is recorded as failed in _prisma_migrations. Fix the DB state, then run prisma migrate resolve --rolled-back (or --applied) with the migration name.
Identify: does your log match?
What you see · exact log / response
Error: P3009 migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve The `20261012081402_add_orders` migration started at 2026-10-12 08:14:02.123 UTC failed
Fix
Being written
Copy-paste fixes for P3009 are in the enrichment queue
The summary above is verified. Paste your full trace into the decoder for a diagnosis now.
Open the decoder →Related errors
Last verified 2026-10-06 · Source: Prisma error reference P1000–P6010 · Official docs ↗ · ~2,900 searches/mo