summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment/comment.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 48e0f7b6e..7da948b0e 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -59,6 +59,15 @@ function comment_update_6002() {
}
/**
+ * 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().
*/
function comment_schema() {
@@ -155,6 +164,7 @@ function comment_schema() {
)
),
'indexes' => array(
+ 'pid' => array('pid'),
'nid' => array('nid'),
'status' => array('status'), // This index is probably unused
),