#!/usr/bin/env bash
mkdir -p target
if [[ ! -f target/choerodon-tool-liquibase.jar ]]
then
    curl https://nexus.choerodon.com.cn/repository/choerodon-release/io/choerodon/choerodon-tool-liquibase/0.9.0.RELEASE/choerodon-tool-liquibase-0.9.0.RELEASE.jar -o target/choerodon-tool-liquibase.jar
fi

#建表
java -Dspring.datasource.url="jdbc:mysql://localhost:3306/hzero_interface?useUnicode=true&characterEncoding=utf-8&useSSL=false" \
	 -Dspring.datasource.username=root \
	 -Dspring.datasource.password=root \
	 -Dspring.datasource.tomcat.max-active=500 \
	 -Ddata.drop=false -Ddata.init=init \
	 -Ddata.dir=data \
	 -jar target/choerodon-tool-liquibase.jar




