在precondition documentation of liquibase我们可以看到下面的例子:
<preConditions>
<dbms type="oracle" />
<dbms type="mysql" />
</preConditions>
当尝试使用 yaml 重新创建相同的规则时,它不起作用。
preConditions:
dbms:
type: oracle
dbms:
type: mysql
我也试过类似的方法:
preConditions:
- dbms:
dbms:
type: oracle
dbms:
type: mysql
我知道可以使用:
dbms:
type: oracle, mysql
我总是得到这样的错误:
expected <block end>, but found BlockEntry
in 'reader', line X, column Y:
- dbms:
^
如何在前提条件中使用多个 dbms?
最佳答案
XML 格式添加了默认的
- preConditions:
- or:
- dbms:
type: oracle
- dbms:
type: mysql
关于yaml - 使用 yaml 在 liquibase 的前提条件下倍数 dbms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28790173/