Commit 7127adab authored by Dries's avatar Dries

- Patch #205465 by jvandyk: add missing index on comment table.

parent dc2cd5ea
......@@ -58,6 +58,15 @@ function comment_update_6002() {
return array(array('success' => TRUE, 'query' => 'Global comment settings copied to all node types.'));
}
/**
* Add index to parent ID field.
*/
function comment_update_6003() {
$ret[] = update_sql("ALTER TABLE {comments} ADD KEY pid (pid)");
return $ret;
}
/**
* Implementation of hook_schema().
*/
......@@ -155,6 +164,7 @@ function comment_schema() {
)
),
'indexes' => array(
'pid' => array('pid'),
'nid' => array('nid'),
'status' => array('status'), // This index is probably unused
),
......
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