I just created a change by extending liquibase.change.AbstractChange and registering it by calling Right now the ChangeFactory is picking up all the metadata but the Xml parser is not letting me use any of that metadata.
You probably just need to make sure you have a namespace for your new change. If you don’t want to create you own xsd, you can use
- http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
which is basically just “allow anything”.
A full header like:
- xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd
- http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
allows you to use your changeSet like:
This is exactly what I was looking for.
Can I also do something like
- blah blah blah
Or would I need to create my own xsd for that?
You should be able to have nested nodes in the xsd namespace. It is basically a “I accept whatever” xsd.