#!/usr/bin/env sh
DB_NAME="queue"
DB_USER="queue"
DB_PASSWORD="password"

java -cp build/libs/queue.jar -Dloader.system=true -Dloader.main=liquibase.integration.commandline.Main org.springframework.boot.loader.PropertiesLauncher\
        --driver=com.mysql.cj.jdbc.Driver\
        --changeLogFile=changelog-master.yml\
        --url="jdbc:mysql://mysql/$DB_NAME?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8"\
        --username="$DB_USER"\
        --password="$DB_PASSWORD"\
        --logLevel=debug\
          update