Currently supported preconditions are supported in the sql file of a liquid-formatted file. Inside the definition of a set of parameters, preconditions can be specified in the following format (copied from official documents):
--preconditions onFail:HALT onError:HALT --precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM my_table
The documentation says that only the sql check precondition type is currently supported.
Full documentation is available on the Liquibase website .
source share