Zac Wellmer
09/22/2022, 4:25 PM_prisma_migrations
table that has an applied_steps_count=0
? I made a stupid mistake which is causing a rolled back migration to have have the same migration name as an applied migration (but different check sums)Nurul
10/13/2022, 11:30 AMmigrate deploy
apply the migration again next time it runs.
It does not matter if there are migrations after this one, if it hasn’t been applied (or the record has been deleted, same thing), it will be applied. If the migration was edited, that will lead to a different outcome, and if it wasn’t, then you will get another row for it in _prisma___migrations. If the migration is gone from your migrations history, there is no harm in just keeping the row.
My recommendation would be not to do it, your migrations table is a record of what happened, why change history? You can always write and apply a new migration.