256-8
256-8
PPrisma
Created by 256-8 on 3/3/2025 in #help-and-questions
Accidental deletion of a migration file
I have two problems: 1. Due to poor attention to detail, an applied migration file from 6 months ago was deleted (both folder and migration.sql) in a branch that was merged into main 2. In the same branch new enums were added to schema.prisma BUT prisma migrate dev was NOT run After this in the heat of the moment, I added the deleted branch back into main (no prisma commands were ran, simply added the file back to production). running
pnpm prisma migrate status
pnpm prisma migrate status
on main returns that everything is up to date BUT
pnpm prisma migrate dev
pnpm prisma migrate dev
leads to some old changes being displayed, that do not reflect the current state of prisma.schema. I would like to know the best way to proceed to revert the situation?
4 replies