java - 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.
解决方案
实际上创建数据库是 Liquibase 无法做到的一件事。它期望您要管理的数据库已经创建。根据您使用的数据库平台,可能会连接到您要在其上创建数据库的同一台服务器,然后发出 SQL 命令来创建新数据库,但这是数据库服务器差异很大的一个领域。
推荐阅读
- reactjs - 在.net core react app中获取环境变量以显示,使用azure设置环境变量
- java - 如何等待在 android 中更改不同的图像视图?
- ios - 我可以在 iOS 中使用 Google Oboe 或 AAudio 吗?https://github.com/google/oboe
- javascript - 在全局 ajaxForm 的每个实例中使用 beforeSend 和 complete
- python - 如何使用 python selenium 在 chrome 浏览器上单击下载图标
- r - 如何选择已以升序方式在其他行中排序的特定行?
- android - Android 依赖 'androidx.core:core' 有不同版本的编译(1.0.0-rc01)和运行时(1.0.2)类路径
- javascript - Javascript:即使不满足 IF 语句的所有条件,也会继续显示错误
- java - 我的 java SSHClient 类有问题,特别是 Expect 方法没有按预期返回数据,会发生什么?
- .net - 将日志文件输出发送到控制台