如何跳过 liquibase 中的特定重构命令?

发布于 2024-11-24 05:51:54 字数 157 浏览 0 评论 0原文

我们有几个 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可是我不能没有你 2024-12-01 05:51:54

您可以使用“上下文”控制在运行时执行哪些变更集。使用有用的上下文名称标记您想要有条件运行的变更集,然后当您运行 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文