Support more index types in DB table parser

UNIQUE, SPATIAL, FULLTEXT
This commit is contained in:
Kijin Sung 2020-07-11 15:42:37 +09:00
parent 5f8ceafdf6
commit 9b776942e5
5 changed files with 25 additions and 8 deletions

View file

@ -4,11 +4,14 @@
<column name="document_srl" type="number" notnull="notnull" index="idx_document_srl" />
<column name="comment_srl" type="number" notnull="notnull" index="idx_comment_srl" />
<column name="description" type="bigtext" />
<column name="geometry" type="multipolygon" />
<column name="status" type="varchar" size="20" default="PUBLIC" />
<column name="list_order" type="number" notnull="notnull" />
<index name="idx_module_document_srl" columns="module_srl,document_srl" />
<index name="idx_status" columns="status(6)" />
<index name="unique_list_order" columns="list_order" unique="unique" />
<index name="unique_list_order" column="list_order" unique="unique" />
<index name="spatial_geometry" column="geometry" type="spatial" />
<index name="fulltext_description" column="description" type="fulltext" />
<constraint type="foreign key" column="module_srl" references="module.module_srl" ondelete="CASCADE" />
<constraint type="check" condition="list_order &lt; 0" />
</table>