Liquibase:以 SQL 格式设置 dbms 字段

Liquibase: setting the dbms field in SQL format

来自http://www.liquibase.org/documentation/changes/sql.html

<changeSet author="liquibase-docs" id="sql-example">
    <sql dbms="h2, oracle"
            endDelimiter="\nGO"
            splitStatements="true"
            stripComments="true">insert into person (name) values ('Bob')
        <comment>What about Bob?</comment>
    </sql>
</changeSet>

如何在 SQL format 的 Liquibase 迁移文件中写入 dbms=h2 部分?

我有这样的代码:

<sql dbms="h2"
        endDelimiter="\nGO"
        splitStatements="true"
        stripComments="true">insert into person (name) values ('Bob')
    <comment>What about Bob?</comment>
</sql>

<sql dbms="mysql"
        endDelimiter="\nGO"
        splitStatements="true"
        stripComments="true">insert into person (name) values ('Bob')
    <comment>What about Bob?</comment>
</sql>

这是 Liquibase SQL 格式:--changeset liquibase-docs:1 dbms:h2

来源:http://www.liquibase.org/documentation/sql_format.html