我正在使用Liquibase让我的数据库模式发展。我想在我的MariaDB或Mysql数据库中添加一个全文索引。根据MariaDB website,您可以使用create table、alter table或create index创建全文索引。Liquibase createIndex标记缺少FULLTEXT属性。有没有人知道该怎么做?
发布于 2018-03-06 09:15:22
发现使用sql tag of Liquibase可以做到这一点。
只是把问题和答案留给其他人。
发布于 2021-12-28 07:20:32
使用modifySql标记允许u创建MySQL全文索引:
<changeSet author="metadevj" id="1640675289806-34">
<createIndex indexName="idx_product_comments" tableName="products">
<column name="comments"/>
</createIndex>
<modifySql>
<replace replace="INDEX" with="FULLTEXT INDEX"/>
</modifySql>
</changeSet>https://stackoverflow.com/questions/49121938
复制相似问题