I tried to implement a custom precondition following the instructions here: http://liquibase.jira.com/wiki/display/CONTRIB/Precondition
Either there is something missing, or I misunderstood the instructions.
Simply “using” the custom precondition in a changelog leads to
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘columnIsNullable’. One of …
Is it enough to simply implement a Precondition in the right place (where PreconditionFactory will pick it up), or am I expected to declare these preconditions with a custom namespace an reference them as “<foo:columnIsNullable …”?
If I do this, AND if I extend the liquibase-2.0.xsd to contain “<xsd:any namespace=”##other" processContents=“lax” minOccurs=“0” maxOccurs=“unbounded” />" as an valid element for the group PreConditionChildren I get it to work as expected.
So… am I doing it wrong, or is there something missing in the Schema?