如何为 liquibase 中的两列设置前提条件?

How to make preConditions for two columns in liquibase?

我不知道如何检查 table 迁移中的两列。 我用液碱。 我想做这样的事情:

        "preConditions": [
      {
        "onFail": "MARK_RAN",
        "not": {
          "columnExists": {
            "columnName": "first_column",
            "tableName": "my_table"
          },
          "columnExists": {
            "columnName": "second_column",
            "tableName": "my_table"
          }
        }
      }
    ]

not 应该是一个对象数组。 它可以通过使用“and”(默认值)或“or”运算符添加额外的逻辑。

我会选择以下内容:

 "preConditions": [{
    "onFail": "MARK_RAN",
    "not": [{
        "and": [{
            "columnExists": {
                "columnName": "first_column",
                "tableName": "my_table"
            }
        }, {
            "columnExists": {
                "columnName": "second_column",
                "tableName": "my_table"
            }
        }]
    }]
}]