Commit b79d4103 authored by Dries's avatar Dries
Browse files

- Patch #358315 by neochief, andypost, Damien Tournoud, catch, xurizaemon:...

- Patch #358315 by neochief, andypost, Damien Tournoud, catch, xurizaemon: drupal_lookup_path() not respects alias' order.
parent a5d180b9
......@@ -1598,6 +1598,16 @@ function system_update_6053() {
return $ret;
}
/**
* Improve indexes on the {url_alias} table.
*/
function system_update_6055() {
db_drop_index('url_alias', 'src_language');
db_drop_unique_key('url_alias', 'dst_language');
db_add_index('url_alias', 'src_language_pid', array('src', 'language', 'pid'));
db_add_unique_key('url_alias', 'dst_language_pid', array('dst', 'language', 'pid'));
}
/**
* @} End of "defgroup updates-6.x-extra"
* The next series of updates should start at 7000.
......@@ -2026,16 +2036,6 @@ function system_update_7024() {
}
}
/**
* Improve indexes on the {url_alias} table.
*/
function system_update_7025() {
db_drop_index('url_alias', 'src_language');
db_drop_index('url_alias', 'dst_language');
db_add_index('url_alias', 'dst_language_pid', array('dst', 'language', 'pid'));
db_add_index('url_alias', 'src_language_pid', array('src', 'language', 'pid'));
}
/**
* Increase permitted length of url aliases to 255 characters.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment