diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-17 05:31:31 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-17 05:31:31 +0000 |
commit | 579e39b46555854b0b38b518f59a71cd9e71c4ae (patch) | |
tree | 615ca57a6700760fd518b61d1ba4a275d4ea37b9 /modules/comment/comment.install | |
parent | 2f097f48cb768a341784f22dbfd095c4d39ada18 (diff) | |
download | brdo-579e39b46555854b0b38b518f59a71cd9e71c4ae.tar.gz brdo-579e39b46555854b0b38b518f59a71cd9e71c4ae.tar.bz2 |
#314349 by mfb, Damien Tournoud, catch, scor, cha0s: Fixed random failures from comment paging tests.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r-- | modules/comment/comment.install | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 9eff90068..0ef098a78 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -352,6 +352,14 @@ function comment_update_7013(&$sandbox) { } /** + * Optimize index for comment_num_new() and comment_new_page_count(). + */ +function comment_update_7014() { + db_drop_index('comment', 'comment_num_new'); + db_add_index('comment', 'comment_num_new', array('nid', 'status', 'created', 'cid', 'thread')); +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ @@ -454,7 +462,7 @@ function comment_schema() { ), 'indexes' => array( 'comment_status_pid' => array('pid', 'status'), - 'comment_num_new' => array('nid', 'changed', 'status'), + 'comment_num_new' => array('nid', 'status', 'created', 'cid', 'thread'), 'comment_uid' => array('uid'), 'comment_nid_language' => array('nid', 'language'), ), |