Schema of version 1.9.5

I’m running LiquiBase 1.9.5 and tried to use the onUpdateSQL in my preconditions (as described in http://liquibase.jira.com/browse/CORE-161).

When editing the changeset in an XML editor I found that http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd does not contain the attribute onUpdateSQL.
Shouldn’t this schema contain changes of the latest 1.9 version?

Sven

It was pulled out of the 1.9 release because it required a schema change and the 1.9 schema was already finalized.  It was introduced in 2.0.

Nathan

Originally posted by: Nathan
It was pulled out of the 1.9 release because it required a schema change and the 1.9 schema was already finalized.  It was introduced in 2.0.
The schema in liquibase.jar of release 1.9.5 contains this attribute. Also the corresponding implementation seems to be committed to the branch of 1.9.

I will try to reference the schema contained in local liquibase.jar instead of http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd.

I opened a ticket about this - CORE-907.

It looks like you’re fine if you use the 2.0 xsd, but they also changed the attribute name to “onSQLOutput”, which accepts TEST/FAIL/IGNORE instead of RUN/FAIL/IGNORE.