diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-09-17 16:03:15 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-09-17 16:03:15 +0200 |
commit | b1a6acde30232367f4e8d66372fedfd1065c5d5a (patch) | |
tree | 8be86f879fc312a7d5f48a8c8ab5ac1ca6a43727 /db_structure.xml | |
parent | ffe04182a86a326861763a5e6afa3577c52e07a5 (diff) | |
download | nextcloud-server-b1a6acde30232367f4e8d66372fedfd1065c5d5a.tar.gz nextcloud-server-b1a6acde30232367f4e8d66372fedfd1065c5d5a.zip |
Added separate table for OC_VCategories and category/object (event/contact etc.) relations.
Diffstat (limited to 'db_structure.xml')
-rw-r--r-- | db_structure.xml | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml index 2256dff943c..5576db1ab85 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -661,4 +661,142 @@ </table> + <table> + + <name>*dbprefix*vcategory</name> + + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>uid</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> + <name>type</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> + <name>category</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>255</length> + </field> + + <index> + <name>uid_index</name> + <field> + <name>uid</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>type_index</name> + <field> + <name>type</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>category_index</name> + <field> + <name>category</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>uid_type_category_index</name> + <unique>true</unique> + <field> + <name>uid</name> + <sorting>ascending</sorting> + </field> + <field> + <name>type</name> + <sorting>ascending</sorting> + </field> + <field> + <name>category</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + </table> + + <table> + + <name>*dbprefix*vcategory_to_object</name> + + <declaration> + + <field> + <name>objid</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>categoryid</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>type</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <index> + <primary>true</primary> + <unique>true</unique> + <name>category_object_index</name> + <field> + <name>categoryid</name> + <sorting>ascending</sorting> + </field> + <field> + <name>objid</name> + <sorting>ascending</sorting> + </field> + <field> + <name>type</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + </database> |