Skip to content
Snippets Groups Projects
Commit b79d4103 authored by Dries Buytaert's avatar Dries Buytaert
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment