4 ms·
Dry-runs and rollbacks (Flyway's undos). Especially rollbacks are useful for development.
by einrealist 9y ago
Dry-runs and rollbacks (Flyway's undos). Especially rollbacks are useful for development.
- smoyer 9y agoI don't remember roll-backs ever being in the OSS project either. We always do potentially destructive operations in two different migrations since you'll never get data back once you delete it. We tend to favor soft-deletes anyway which makes life a lot easier but can bloat your DB.
- oneweekwonder 9y ago> Especially rollbacks are useful for development I abuse Liquibase to generate sql for me by diffing a reference db to create the changeset. Will a rollback not be comparing your new schema against your old schema and then apply that changeset? Take into account this might/will drop data. But looking at flywaydb undo docs[0] I don't see it address anything more then the schema? [0]: https://flywaydb.org/documentation/command/undo https://flywaydb.org/documentation/command/undo edit: for those interested I recently moved my shell script solution to python[1]. [1]: https://github.com/Morabaraba/python-liquibase https://github.com/Morabaraba/python-liquibase