liquibase - Liquibase - 更改日志和数据库之间的差异
问题描述
在我们对数据库实施/应用新更改之前,我们希望查看将应用的待处理更改列表。所以本质上它是最新的变更日志(尚未应用于数据库)和数据库之间的差异。我试着四处寻找让这个工作 - 但似乎 Liquibase 无法做到这一点。这有解决方法吗?
这主要是为了确定如果使用 liquibase 更新数据库,将在当前版本中应用哪些更改。我们使用的是 liquibase v3.8.9。
米顿
解决方案
If you are looking for a list of pending SQL to be applied to the target database, updateSQL is what you should look for: https://docs.liquibase.com/commands/community/updatesql.html
It does exactly this: "a diff between the latest changelog (yet to be applied to the DB) and the DB. "
The output (along with other debug info) will be the SQL Liquibase would run if you called just plain update
推荐阅读
- java - 使用 Camel-Case 的 Hibernate Null 属性值
- ios - 如何保留 Timer 实例
- linux - 查看传递的参数
- android - Android Kotlin Anko 警报 CustomView 错误
- javascript - 使用输入的 D3 树搜索 - 搜索小写
- web-hosting - 图像未在 codepen 中显示
- javascript - 如何解决:console.error:“redux-persist 未能创建同步存储。回退到“noop”存储
- excel - 基于另一列合并Vba中的单元格
- bash - 如何找到正在运行的脚本的传递参数值?
- c# - 如何将nuget包.Net Standard嵌入到项目C#中?