Hacker News new | ask | show | jobs
by move-on-by 2099 days ago
I too am a fan. The `updateTestingRollback` command is great for testing to ensure the complete schema is defined and no manual changes are needed. I run it before running the unit and integration tests. The `validate` command is also good, but doing the full update, rollback, and update again is much better at finding issues in a controlled environment. (ie. don't run it in prod).

> updateTestingRollback tests rollback support by deploying all pending changesets to the database, executes a rollback sequentially for the equal number of changesets that were deployed, and then runs the update again deploying all changesets to the database. [0]

0: https://docs.liquibase.com/commands/community/updatetestingr...

1 comments

Thanks, that is really great. I didn't know about that one.