diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-26 17:47:53 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-20 16:30:22 +0100 |
commit | cf6ee1c866ccca617cb2cae98966f04612084e7f (patch) | |
tree | 221d3acea8c7c39035cbfa3133dda6f74f4b3184 /db_structure.xml | |
parent | 647d8ea5decad8140f9c280ae90039aa71c4eb93 (diff) | |
download | nextcloud-server-cf6ee1c866ccca617cb2cae98966f04612084e7f.tar.gz nextcloud-server-cf6ee1c866ccca617cb2cae98966f04612084e7f.zip |
cache mountpoints in the db
Diffstat (limited to 'db_structure.xml')
-rw-r--r-- | db_structure.xml | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml index e4bd8d998ee..058322f78a3 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -127,6 +127,93 @@ </table> + <!-- a list of all mounted storage per user, populated on filesystem setup --> + <table> + + <name>*dbprefix*mounts</name> + + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + + <field> + <name>storage_id</name> + <type>integer</type> + <notnull>true</notnull> + </field> + + <!-- fileid of the root of the mount, foreign key: oc_filecache.fileid --> + <field> + <name>root_id</name> + <type>integer</type> + <notnull>true</notnull> + </field> + + <field> + <name>user_id</name> + <type>text</type> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> + <name>mount_point</name> + <type>text</type> + <notnull>true</notnull> + <length>4000</length> + </field> + + <index> + <name>mounts_user_index</name> + <unique>false</unique> + <field> + <name>user_id</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>mounts_storage_index</name> + <unique>false</unique> + <field> + <name>storage_id</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>mounts_root_index</name> + <unique>false</unique> + <field> + <name>root_id</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>mounts_user_root_index</name> + <unique>true</unique> + <field> + <name>user_id</name> + <sorting>ascending</sorting> + </field> + <field> + <name>root_id</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + <table> <!-- |