Commit 11d7b4d9 authored by Dries's avatar Dries

- Patch #818214 by dereine: improper table structure for url_alias().

parent 77f6e36f
......@@ -1568,11 +1568,11 @@ function system_schema() {
),
),
'unique keys' => array(
'alias_language_pid' => array('alias', 'language', 'pid'),
'alias_language' => array('alias', 'language'),
),
'primary key' => array('pid'),
'indexes' => array(
'source_language_pid' => array('source', 'language', 'pid'),
'source_language' => array('source', 'language'),
),
);
......@@ -2543,6 +2543,18 @@ function system_update_7055() {
db_change_field('system', 'info', 'info', $spec);
}
/**
* Remove pid from indexes and unique keys of {}url_alias}.
*/
function system_update_7056() {
// Drop indexes.
db_drop_index('url_alias', 'source_language_pid');
db_drop_unique_key('url_alias', 'alias_language_pid');
// Add indexes back.
db_add_index('url_alias', 'source_language', array('source', 'language'));
db_add_unique_key('url_alias', 'alias_language', array('alias', 'language'));
}
/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
......
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