diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-11-09 18:41:57 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-09 18:41:57 +0100 |
commit | 5a6aba1e1114707942c613c2402eed3237b43a21 (patch) | |
tree | 5cda68cc0256db5a3b3002fa694026d7d1475128 /db_structure.xml | |
parent | 5cc6635eb81a8d76c04ee040a791f51ebbe389ef (diff) | |
download | nextcloud-server-5a6aba1e1114707942c613c2402eed3237b43a21.tar.gz nextcloud-server-5a6aba1e1114707942c613c2402eed3237b43a21.zip |
provide caching for file metadata
Diffstat (limited to 'db_structure.xml')
-rw-r--r-- | db_structure.xml | 86 |
1 files changed, 85 insertions, 1 deletions
diff --git a/db_structure.xml b/db_structure.xml index ddb8c44d19d..c7fa423e14e 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -43,11 +43,20 @@ <table> - <name>*dbprefix*foldersize</name> + <name>*dbprefix*fscache</name> <declaration> <field> + <name>id</name> + <autoincrement>1</autoincrement> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> <name>path</name> <type>text</type> <default></default> @@ -56,6 +65,24 @@ </field> <field> + <name>parent</name> + <type>integer</type> + <default> + </default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>name</name> + <type>text</type> + <default> + </default> + <notnull>true</notnull> + <length>512</length> + </field> + + <field> <name>size</name> <type>integer</type> <default></default> @@ -63,14 +90,71 @@ <length>4</length> </field> + <field> + <name>ctime</name> + <type>integer</type> + <default> + </default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>mtime</name> + <type>integer</type> + <default> + </default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>mimetype</name> + <type>text</type> + <default> + </default> + <notnull>true</notnull> + <length>32</length> + </field> + + <field> + <name>mimepart</name> + <type>text</type> + <default> + </default> + <notnull>true</notnull> + <length>32</length> + </field> + <index> <name>path_index</name> + <unique>true</unique> <field> <name>path</name> <sorting>ascending</sorting> </field> </index> + <index> + <name>parent_index</name> + <field> + <name>parent</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>parent_name_index</name> + <field> + <name>parent</name> + <sorting>ascending</sorting> + </field> + <field> + <name>name</name> + <sorting>ascending</sorting> + </field> + </index> + </declaration> </table> |