Rollback runs if precondition fails


I see some unexpected (for me) behaviour on Liquibase 2.0.3. 

I added the precondition to a changeset with custom sql code and provided rollback for it. On HSQL the changeset isn’t run but it tries to roll changes back. 

I found some similar posts like And seems the issue is still alive, no?

It could be still an issue. I created to investigate it further.


What version of liquibase are you running?


I just ran into this issue.   I’m trying to make my change sets work for both MySQL and Postgres.  The updates work great, but on rollback it tries to run the MySQL rollbacks which fail because the syntax isn’t correct.

Note:  Pre-conditions are set to MARK_RAN