Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- LIQUIBASE_HOME=/usr/local/liquibase
- M2_REPO=~/.m2/repository
- CLASSPATH="./postgresql-9.4.1208.jar"
- # Fetch the NAT-ed port information for each of the database containers.
- BASE_DB_PORT=$(PORT_VAR=$(docker-compose port baselinedb 5432) ; echo ${PORT_VAR##*:})
- DELTA_DB_PORT=$(PORT_VAR2=$(docker-compose port deltadb 5432) ; echo ${PORT_VAR2##*:})
- # Most of the parameters are contained within liquibase.properties. However
- # everything we specify here takes precedence.
- echo "Calling ${LIQUIBASE_HOME}/liquibase diffChangeLog..."
- ${LIQUIBASE_HOME}/liquibase --classpath=${CLASSPATH} \
- --url="jdbc:postgresql://localhost:${BASE_DB_PORT}/mydb" \
- --referenceUrl="jdbc:postgresql://localhost:${DELTA_DB_PORT}/mydb" \
- diffChangeLog
Add Comment
Please, Sign In to add comment