简体   繁体   English

使用liquibase进行derby数据迁移

[英]derby Data migration using liquibase

How to assign two columns to one index in Lquibase datamigration.xml file for Derby DB. 如何为Derby DB在Lquibase datamigration.xml文件中将两个列分配给一个索引。 I have used following codes which work fine with oracle and MSSQL. 我使用了以下与oracle和MSSQL一起使用的代码。 but derby is creating two rows with same index name. 但是derby正在创建具有相同索引名称的两行。

<createIndex indexName="idx_group_name" tableName="rights" unique="true">
            <column name="name"/>
            <column name="group_name"/>
        </createIndex>

Derby DB was complaining while uploading same data from csv file. 从CSV文件上传相同数据时,Derby DB抱怨。 Issue was resolved by not uploading csv file from dbmigration.xml file. 通过不从dbmigration.xml文件上载csv文件解决了问题。 Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM