Flyway for Freeloaders — Rollback On a Dime
Summary
This article presents a DIY rollback approach for Flyway Community Edition, showing how to implement an undo-like rollback using forward migrations and separate down scripts. It covers versioning discipline, staging of down migrations, tracking the applied batch, and cleaning up Flyway history to return the database to its prior state. It also notes limitations and the risk of data loss when applying manual rollbacks.