如何跳过 liquibase 中的特定重构命令?
我们有几个 liquibase 脚本,其中包含许多我们不想自动执行的自定义 SQL 查询。
我们想知道是否存在跳过特定重构命令的配置,例如
或
。排除这些命令会很有帮助。
We have several liquibase scripts containing lots of custom sql queries we don't want to execute automatically.
We would like to know if a configuration exists that skips specific refactoring commands, as <sql>
or <dropTable>
. It would be helpfull to exclude these commands.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用“上下文”控制在运行时执行哪些变更集。使用有用的上下文名称标记您想要有条件运行的变更集,然后当您运行 liquibase 时,您可以传入您想要执行的上下文列表。
You are able to control which changeSets execute at runtime using "contexts". Tag the changeSets you want to run conditionally with helpful context names, and then when you run liquibase you can pass in the list of contexts you want executed.