Postgresql 如何使用Liquibase创建和删除postgres数据库?

Postgresql 如何使用Liquibase创建和删除postgres数据库?,postgresql,liquibase,Postgresql,Liquibase,如何使用Liquibase创建postgres数据库? 我想通过Liquibase执行以下命令: create database db_name owner user_name; drop database db_name; 如何使用Liquibase创建和删除postgres数据库? 我想通过Liquibase执行以下命令: create database db_name owner user_name; drop database db_name; 我可以使用 创建自己的bat文件

如何使用Liquibase创建postgres数据库? 我想通过Liquibase执行以下命令:

create database db_name owner user_name;
drop database db_name;
如何使用Liquibase创建和删除postgres数据库? 我想通过Liquibase执行以下命令:

create database db_name owner user_name;
drop database db_name;

我可以使用

创建自己的bat文件 从中读取liquibase.property文件 创建数据库 运行liquibase.jar更新
你为什么要这么做?Liquibase可能不是合适的工具。您不能这样做,因为Liquibase无法更改连接,要使用您创建的数据库,您需要使用不同的JDBC URL重新连接。如果您只是想要一个干净的数据库,请查看drop拥有者。。。可以使用自定义SQL轻松运行