diff options
Diffstat (limited to 'db_structure.xml')
-rw-r--r-- | db_structure.xml | 92 |
1 files changed, 29 insertions, 63 deletions
diff --git a/db_structure.xml b/db_structure.xml index 99a30cb6137..8bbc6e5cc6b 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -53,20 +53,28 @@ <table> - <name>*dbprefix*fscache</name> + <name>*dbprefix*filecache</name> <declaration> <field> - <name>id</name> - <autoincrement>1</autoincrement> + <name>fileid</name> <type>integer</type> <default>0</default> <notnull>true</notnull> + <autoincrement>1</autoincrement> <length>4</length> </field> <field> + <name>storage</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> <name>path</name> <type>text</type> <default></default> @@ -85,49 +93,17 @@ <field> <name>parent</name> <type>integer</type> - <default>0</default> - <notnull>true</notnull> - <length>8</length> - </field> - - <field> - <name>name</name> - <type>text</type> <default></default> <notnull>true</notnull> - <length>300</length> + <length>4</length> </field> <field> - <name>user</name> + <name>name</name> <type>text</type> <default></default> <notnull>true</notnull> - <length>64</length> - </field> - - <field> - <name>size</name> - <type>integer</type> - <default>0</default> - <notnull>true</notnull> - <length>8</length> - </field> - - <field> - <name>ctime</name> - <type>integer</type> - <default>0</default> - <notnull>true</notnull> - <length>8</length> - </field> - - <field> - <name>mtime</name> - <type>integer</type> - <default>0</default> - <notnull>true</notnull> - <length>8</length> + <length>250</length> </field> <field> @@ -135,7 +111,7 @@ <type>text</type> <default></default> <notnull>true</notnull> - <length>96</length> + <length>64</length> </field> <field> @@ -147,55 +123,45 @@ </field> <field> - <name>encrypted</name> + <name>size</name> <type>integer</type> - <default>0</default> + <default></default> <notnull>true</notnull> - <length>1</length> + <length>4</length> </field> <field> - <name>versioned</name> + <name>mtime</name> <type>integer</type> - <default>0</default> + <default></default> <notnull>true</notnull> - <length>1</length> + <length>4</length> </field> <field> - <name>writable</name> + <name>encrypted</name> <type>integer</type> <default>0</default> <notnull>true</notnull> - <length>1</length> + <length>4</length> </field> <index> - <name>fscache_path_hash_index</name> - <field> - <name>path_hash</name> - <sorting>ascending</sorting> - </field> - </index> - - <index> - <name>parent_index</name> + <name>storage_path_hash</name> + <unique>true</unique> <field> - <name>parent</name> + <name>storage</name> <sorting>ascending</sorting> </field> - </index> - - <index> - <name>name_index</name> <field> - <name>name</name> + <name>path_hash</name> <sorting>ascending</sorting> </field> </index> <index> - <name>parent_name_index</name> + <name>parent_name_hash</name> + <unique>true</unique> <field> <name>parent</name> <sorting>ascending</sorting> |