【发布时间】:2018-10-21 11:44:49
【问题描述】:
liquibase: cvc-complex-type.2.4.a: 发现无效内容开始 带有元素'sql'。之一 '{"http://www.liquibase.org/xml/ns/dbchangelog":modifySql}' 是 预计。
收到此变更集的错误
<changeSet id="18.7.0.1-1-userTable" author="so">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="USER_CURRENT"/>
</not>
</preConditions>
<createTable tableName="USER_CURRENT">
<column name="name" type="VARCHAR(20)">
<constraints primaryKey="true" nullable="false" primaryKeyName="name"/>
</column>
</createTable>
<modifySql dbms="mysql">
<append value=" PARTITION BY KEY() PARTITIONS 16"/>
</modifySql>
<modifySql dbms="oracle">
<append value=" ORGANIZATION INDEX PARTITION BY HASH (name) PARTITIONS 16 PARALLEL 4"/>
</modifySql>
<sql>GRANT SELECT ON USER_CURRENT TO 'reportsUser'@'%';</sql>
</changeSet>
【问题讨论】:
-
嗨,Bhadra,欢迎来到 SO。请格式化和校对您的问题。也可以在这里学习如何正确提问:stackoverflow.com/help/how-to-ask
标签: liquibase