mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Add unit tests for DBTableParser
This commit is contained in:
parent
d2f24dcd12
commit
8bb01edf86
2 changed files with 67 additions and 0 deletions
14
tests/_data/dbtable/example.xml
Normal file
14
tests/_data/dbtable/example.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<table name="example">
|
||||
<column name="example_srl" type="bignumber" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="module_srl" type="number" notnull="notnull" index="idx_module_srl" />
|
||||
<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="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" />
|
||||
<constraint type="foreign key" column="module_srl" references="module.module_srl" ondelete="CASCADE" />
|
||||
<constraint type="check" condition="list_order < 0" />
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue