- Symptom
- Drift detected: Your database schema is not in sync with your migration history.We need to reset the "public" schema at ... All data will be lost.The CI step stops at the reset prompt or exits without applying anything
- Cause
- migrate dev is a development command that replays history in a shadow database and offers to reset when the live schema differs. migrate deploy only applies pending migrations and never checks drift, resets, or uses a shadow database.
- Fix
- Use migrate deploy in CI, staging, and production, and keep migrate dev for local databases you can wipe.
- Apply
npx prisma migrate deploy- Affected
- Prisma ORM 6 and 7; prompt text reproduced on 7.10.0
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders