How do you rollback? Use case: During deployment,...
# orm-help
n
How do you rollback? Use case: During deployment, we execute the migrations, then deploy the app. If the app deployment fails, we should be able to rollback immediately because a migrate database may break the app.
a
Hi Noel 👋! Prisma does not currently support rollbacks. Our recommendation is to perform another forward migration that undoes the changes from the previous migration.
Also, please add your use case or a +1 to this existing issue. Let me know if I can help with anything else!
d
Hey, @Noel Martin Llevares I know it's been a couple of months since asked. But we've been hard at work at addressing failed migrations and rollbacks. We now have two new commands to help you get out of such situations. Here is a guide how to use them. We'd love to get some feedback on that solution. https://www.prisma.io/docs/guides/database/production-troubleshooting#new-commands-migrate-diff-and-db-execute