#363262 by catch and Damien Tournoud: Replace src index on the {url_alias} table with src, language for better performance.
parent
4bf29632d4
commit
5951daf881
|
@ -1260,7 +1260,7 @@ function system_schema() {
|
|||
),
|
||||
'primary key' => array('pid'),
|
||||
'indexes' => array(
|
||||
'src' => array('src'),
|
||||
'src_language' => array('src', 'language'),
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -3196,6 +3196,17 @@ function system_update_7017() {
|
|||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace src index on the {url_alias} table with src, language.
|
||||
*/
|
||||
function system_update_7018() {
|
||||
$ret = array();
|
||||
db_add_index($ret, 'url_alias', 'src_language', array('src', 'language'));
|
||||
db_drop_index($ret, 'url_alias', 'src');
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @} End of "defgroup updates-6.x-to-7.x"
|
||||
* The next series of updates should start at 8000.
|
||||
|
|
Loading…
Reference in New Issue