首页 > 解决方案 > Is there a way to create postgres database before it executes changesets in liquibase

问题描述

I am using liquibase in my spring boot app and I'm looking for a way to create a database before it executes the changesets.

标签: javapostgresqlliquibase

解决方案


实际上创建数据库是 Liquibase 无法做到的一件事。它期望您要管理的数据库已经创建。根据您使用的数据库平台,可能会连接到您要在其上创建数据库的同一台服务器,然后发出 SQL 命令来创建新数据库,但这是数据库服务器差异很大的一个领域。


推荐阅读