}
/**
+ * Add indices to uid fields.
+ */
+function comment_update_6005() {
+ $ret = array();
+ db_add_index($ret, 'comments', 'comment_uid', array('uid'));
+ db_add_index($ret, 'node_comment_statistics', 'last_comment_uid', array('last_comment_uid'));
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-6.x-extra"
* The next series of updates should start at 7000.
*/
'indexes' => array(
'pid' => array('pid'),
'nid' => array('nid'),
+ 'comment_uid' => array('uid'),
'status' => array('status'), // This index is probably unused
),
'primary key' => array('cid'),
'indexes' => array(
'node_comment_timestamp' => array('last_comment_timestamp'),
'comment_count' => array('comment_count'),
+ 'last_comment_uid' => array('last_comment_uid'),
),
);
return $schema;
}
-