How does Flyway undo behavior work?
I've read the documentation on the Flyway undo, and that there are two ways to go about it. One is to provide the SQL file that does the undo you want and the other is a rollback Flyway does to the latest version that was applied.
My question is on the behavior of the second. If I run flyway undo, does it automatically generate SQL statements that will undo what was previously applied automatically? It knows how to undo whatever was done in the latest version in history? Database we're using is Postgresql if that helps with context.
0 · Share on Twitter