Index: comment.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.install,v
retrieving revision 1.36
diff -u -p -r1.36 comment.install
--- comment.install	4 Jun 2009 03:33:27 -0000	1.36
+++ comment.install	15 Jun 2009 12:35:21 -0000
@@ -154,6 +154,16 @@ function comment_update_7002() {
 }
 
 /**
+ * Replace index on status by index on (pid, status)
+ */
+function comment_update_7003() {
+  $ret = array();
+  db_drop_index($ret, 'comment', 'status');
+  db_add_index($ret, 'comment', 'comment_pid_status', array('pid', 'status'));
+  return $ret;
+}
+
+/**
  * @} End of "defgroup updates-6.x-to-7.x"
  * The next series of updates should start at 8000.
  */
@@ -257,8 +267,7 @@ function comment_schema() {
     'indexes' => array(
       'pid' => array('pid'),
       'nid' => array('nid'),
-      // This index is probably unused.
-      'status' => array('status'),
+      'comment_status_pid' => array('pid', 'status'),
     ),
     'primary key' => array('cid'),
     'foreign keys' => array(
