如何使用Liquibase创建postgres数据库? 我想通过Liquibase执行以下命令:
create database db_name owner user_name;
如何使用Liquibase创建和删除postgres数据库? 我想通过Liquibase执行以下命令:
drop database db_name;
答案 0 :(得分:0)
我可以使用
创建它
echo off
FOR /F "eol=; tokens=2,2 delims==" %%i IN ('findstr "url" liquibase.properties') DO set url=%%i
echo %url%
FOR /f " tokens=3,3 delims=/" %%i IN ("%url%") DO set url2=%%i
echo %url2%
Echo "Starting Deployment" >> Deploy.log
Echo "Create Database"
psql.exe -h %1 -p %2 -U %3 -c "create database %url2%" >> Deploy.log
Echo "Call liquibase script"
start liquibase.jar update>> Deploy.log
Echo "Liquibase Script End"