new filecache table

This commit is contained in:
Robin Appelman 2012-10-02 23:46:35 +02:00
parent 1ed89760be
commit 6134e554f2
2 changed files with 41 additions and 75 deletions

View File

@ -53,19 +53,27 @@
<table> <table>
<name>*dbprefix*fscache</name> <name>*dbprefix*filecache</name>
<declaration> <declaration>
<field> <field>
<name>id</name> <name>fileid</name>
<autoincrement>1</autoincrement>
<type>integer</type> <type>integer</type>
<default>0</default> <default>0</default>
<notnull>true</notnull> <notnull>true</notnull>
<autoincrement>1</autoincrement>
<length>4</length> <length>4</length>
</field> </field>
<field>
<name>storage</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>64</length>
</field>
<field> <field>
<name>path</name> <name>path</name>
<type>text</type> <type>text</type>
@ -85,9 +93,9 @@
<field> <field>
<name>parent</name> <name>parent</name>
<type>integer</type> <type>integer</type>
<default>0</default> <default></default>
<notnull>true</notnull> <notnull>true</notnull>
<length>8</length> <length>4</length>
</field> </field>
<field> <field>
@ -95,39 +103,7 @@
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>true</notnull>
<length>300</length> <length>250</length>
</field>
<field>
<name>user</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>
</field> </field>
<field> <field>
@ -135,7 +111,7 @@
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>true</notnull>
<length>96</length> <length>64</length>
</field> </field>
<field> <field>
@ -146,32 +122,37 @@
<length>32</length> <length>32</length>
</field> </field>
<field>
<name>size</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> <field>
<name>encrypted</name> <name>encrypted</name>
<type>integer</type> <type>integer</type>
<default>0</default> <default>0</default>
<notnull>true</notnull> <notnull>true</notnull>
<length>1</length> <length>4</length>
</field>
<field>
<name>versioned</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>1</length>
</field>
<field>
<name>writable</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>1</length>
</field> </field>
<index> <index>
<name>fscache_path_hash_index</name> <name>storage_path_hash</name>
<unique>true</unique>
<field>
<name>storage</name>
<sorting>ascending</sorting>
</field>
<field> <field>
<name>path_hash</name> <name>path_hash</name>
<sorting>ascending</sorting> <sorting>ascending</sorting>
@ -179,23 +160,8 @@
</index> </index>
<index> <index>
<name>parent_index</name> <name>parent_name_hash</name>
<field> <unique>true</unique>
<name>parent</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>name_index</name>
<field>
<name>name</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>parent_name_index</name>
<field> <field>
<name>parent</name> <name>parent</name>
<sorting>ascending</sorting> <sorting>ascending</sorting>

View File

@ -81,7 +81,7 @@ class OC_Util {
*/ */
public static function getVersion() { public static function getVersion() {
// hint: We only can count up. So the internal version number of ownCloud 4.5 will be 4.9.0. This is not visible to the user // hint: We only can count up. So the internal version number of ownCloud 4.5 will be 4.9.0. This is not visible to the user
return array(4,86,11); return array(4,86,12);
} }
/** /**