Browse Source

Add indexes and primary keys.

tags/v6.0.0alpha2
Thomas Tanghus 11 years ago
parent
commit
f052846914
2 changed files with 55 additions and 1 deletions
  1. 54
    0
      db_structure.xml
  2. 1
    1
      lib/util.php

+ 54
- 0
db_structure.xml View File



<index> <index>
<name>appconfig_appid_key_index</name> <name>appconfig_appid_key_index</name>
<primary>true</primary>
<unique>true</unique>
<field> <field>
<name>appid</name> <name>appid</name>
<sorting>ascending</sorting> <sorting>ascending</sorting>


<index> <index>
<name>file_map_lp_index</name> <name>file_map_lp_index</name>
<primary>true</primary>
<unique>true</unique> <unique>true</unique>
<field> <field>
<name>logic_path_hash</name> <name>logic_path_hash</name>
<index> <index>
<name>id_user_index</name> <name>id_user_index</name>
<unique>true</unique> <unique>true</unique>
<primary>true</primary>
<field> <field>
<name>fileid</name> <name>fileid</name>
<sorting>ascending</sorting> <sorting>ascending</sorting>
<length>64</length> <length>64</length>
</field> </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> </declaration>


</table> </table>
</field> </field>
</index> </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> </declaration>


</table> </table>


<index> <index>
<name>pref_userid_appid_key_index</name> <name>pref_userid_appid_key_index</name>
<primary>true</primary>
<unique>true</unique>
<field> <field>
<name>userid</name> <name>userid</name>
<sorting>ascending</sorting> <sorting>ascending</sorting>


<declaration> <declaration>


<field>
<name>id</name>
<autoincrement>1</autoincrement>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>4</length>
</field>

<field> <field>
<name>userid</name> <name>userid</name>
<type>text</type> <type>text</type>
<length>255</length> <length>255</length>
</field> </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> </declaration>


</table> </table>

+ 1
- 1
lib/util.php View File

public static function getVersion() { public static function getVersion() {
// hint: We only can count up. Reset minor/patchlevel when // hint: We only can count up. Reset minor/patchlevel when
// updating major/minor version number. // updating major/minor version number.
return array(5, 80, 00);
return array(5, 80, 01);
} }


/** /**

Loading…
Cancel
Save