summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-01 13:35:24 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-01 13:35:24 +0000
commit65163fc48efe2f173e5b52034537dbee0ab136ee (patch)
tree06ebe3eaee9c2a818e8e1202bf1b265a51c33d81
parentc908edebeb0fb24c943071f5ac9f1d0631b08c98 (diff)
downloadbrdo-65163fc48efe2f173e5b52034537dbee0ab136ee.tar.gz
brdo-65163fc48efe2f173e5b52034537dbee0ab136ee.tar.bz2
- Patch #336483 by catch: moving the update function to the proper module.
-rw-r--r--modules/comment/comment.install7
-rw-r--r--modules/system/system.install3
2 files changed, 8 insertions, 2 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index f6db6408e..7098d0425 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -208,6 +208,13 @@ function comment_update_7010() {
}
/**
+ * Add an index to node_comment_statistics on comment_count.
+ */
+function comment_update_7011() {
+ db_add_index('node_comment_statistics', 'comment_count', array('comment_count'));
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/
diff --git a/modules/system/system.install b/modules/system/system.install
index 0bbad5e78..ccaf437c4 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2491,10 +2491,9 @@ function system_update_7029() {
}
/**
- * Add an index to node_comment_statistics on comment_count.
+ * Moved to comment_update_7011().
*/
function system_update_7030() {
- db_add_index('node_comment_statistics', 'comment_count', array('comment_count'));
}
/**