I’m using Liquibase 2.0-dev and have an issue with how preconditions are evaluated in updateSQL mode.
I’d expect that preconditions are evaluated and changesets get written to the SQL output file similar to when
they a changelog is applied to the database directly but that’s not the case. By default, preconditions are
ignored when in updateSQL mode.
I noticed that you can set an attribute ‘onSqlOutput’ on to one of [TEST|FAIL|IGNORE] whereas
IGNORE is the default. What is the difference between FAIL and TEST? I couldn’t see any.
How about changing the default behaviour to TEST (and set a default in the XSD as well) to be consistent
with the known update behaviour?