Rollback runs if precondition fails

Hello!


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 http://forum.liquibase.org/topic/preconditions-and-custom-rollback. And seems the issue is still alive, no?

It could be still an issue. I created  https://liquibase.jira.com/browse/CORE-1138 to investigate it further.


Nathan

What version of liquibase are you running?

Nathan

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