Hi all. First I want to say thank you for putting out Liquibase it’s been a huge help.
The issue that I’m having revolves around the preconditions tag. The problem is that for my use there are existing databases that will start to use Liquibase for managing the application of SQL changes as well as databases that will be newly installed using Liquibase from the start. They all use the same schema and table definitions.
I have my install.xml defined like the following:
- <?xml version="1.0" encoding="UTF-8"?>
The idea is to have the precondition check to see if a table named control exists and if it does to assume that the database exists and is at the version cutoff to start using Liquibase change logs. The problem is that the precondition tag when used with databaseChangeLog does not support anything besides WARN or HALT for the onFail attribute. Currently I am chaining the install and the update batch calls so that if the install fails the update liquibase call still runs. If I use HALT it messes things up with an error message and stack trace. Does anyone have any suggestions besides putting in preconditions in every changeset to make use of onFail=“MARK_RAN”?
Thanks in advance for your help.