diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-10 11:49:37 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-10 11:49:37 +0100 |
commit | 0c05244f8bdc083f54b01cbde05c3df7bd97e618 (patch) | |
tree | 1a0d5323f7169cbbcb6b608427ef15b904b28864 /db_structure.xml | |
parent | b44c18d1640f4ac395eecbad5a33dcb9af1d4038 (diff) | |
download | nextcloud-server-0c05244f8bdc083f54b01cbde05c3df7bd97e618.tar.gz nextcloud-server-0c05244f8bdc083f54b01cbde05c3df7bd97e618.zip |
Mapper: use md5 hashes for database indexes
indexing the full path exeeds the maximum index length for MySQL
Diffstat (limited to 'db_structure.xml')
-rw-r--r-- | db_structure.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/db_structure.xml b/db_structure.xml index fc7f1082ffa..f353ae08098 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -109,6 +109,14 @@ </field> <field> + <name>logic_path_hash</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>32</length> + </field> + + <field> <name>physic_path</name> <type>text</type> <default></default> @@ -116,11 +124,19 @@ <length>512</length> </field> + <field> + <name>physic_path_hash</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>32</length> + </field> + <index> <name>file_map_lp_index</name> <unique>true</unique> <field> - <name>logic_path</name> + <name>logic_path_hash</name> <sorting>ascending</sorting> </field> </index> @@ -129,7 +145,7 @@ <name>file_map_pp_index</name> <unique>true</unique> <field> - <name>physic_path</name> + <name>physic_path_hash</name> <sorting>ascending</sorting> </field> </index> |