Custom extension, which alter the behaviour of the original Liquibase in order to be able to deal with custom tags. Liquibase schema, which contains all custom tags, attributes and xml types, can be found in the liquibase-ext-schema
repository.
List of allowed commands with their arguments can be found here
Example:
liquibase --contexts=pub,sub --driver=org.postgresql.Driver --changeLogFile=main-liquibase.xml --url=jdbc:postgresql://localhost:5432/<dbname> --username=<username> --password=<password> --labels=!citus update
- Postgres database is configured and running
- Liquibase is installed
- Postgres JDBC driver is downloaded
- Run extension
Two options:- JAR file approach:
- package application into jar file with
mvn clean package
- move created jar to
$LIQUIBASE_HOME/lib
folder - add JDBC driver to the same folder
- run
liquibase ...
command with custom arguments
- package application into jar file with
- Java console app approach:
- add custom arguments to
liquibase.properties
file or to java run args - run java app with the entry point in
liquibase.integration.commandline.Main.main(..)
- add custom arguments to
- JAR file approach:
liquibase-ddm-ext is Open Source software released under the Apache 2.0 license.