Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-03-19 04:35:12 +0400
committerThomas Tanghus <thomas@tanghus.net>2013-03-19 04:38:40 +0400
commitf0528469144ed46f7684ac1465dc7e9f8869d7f9 (patch)
tree332720b3b097f3b4e7a27d809b4e38cb68ce0397 /db_structure.xml
parent935d2169c8aaace3a821f888f356ab683ca2efb7 (diff)
Add indexes and primary keys.
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml
index 3ce41096d9e..c8a0b268968 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -37,6 +37,8 @@
<index>
<name>appconfig_appid_key_index</name>
+ <primary>true</primary>
+ <unique>true</unique>
<field>
<name>appid</name>
<sorting>ascending</sorting>
@@ -134,6 +136,7 @@
<index>
<name>file_map_lp_index</name>
+ <primary>true</primary>
<unique>true</unique>
<field>
<name>logic_path_hash</name>
@@ -379,6 +382,7 @@
<index>
<name>id_user_index</name>
<unique>true</unique>
+ <primary>true</primary>
<field>
<name>fileid</name>
<sorting>ascending</sorting>
@@ -415,6 +419,20 @@
<length>64</length>
</field>
+ <index>
+ <name>gu_gid_uid_index</name>
+ <primary>true</primary>
+ <unique>true</unique>
+ <field>
+ <name>gid</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>uid</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
</declaration>
</table>
@@ -448,6 +466,20 @@
</field>
</index>
+ <index>
+ <name>ga_gid_uid_index</name>
+ <primary>true</primary>
+ <unique>true</unique>
+ <field>
+ <name>gid</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>uid</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
</declaration>
</table>
@@ -596,6 +628,8 @@
<index>
<name>pref_userid_appid_key_index</name>
+ <primary>true</primary>
+ <unique>true</unique>
<field>
<name>userid</name>
<sorting>ascending</sorting>
@@ -621,6 +655,15 @@
<declaration>
<field>
+ <name>id</name>
+ <autoincrement>1</autoincrement>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <field>
<name>userid</name>
<type>text</type>
<default></default>
@@ -651,6 +694,17 @@
<length>255</length>
</field>
+ <index>
+ <name>user_propertypath_index</name>
+ <field>
+ <name>userid</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>propertypath</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
</declaration>
</table>