diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-05-14 13:29:17 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-05-14 13:29:17 -0400 |
commit | 2646b43acdd3cf1e11319d8ea5bec01d9eaac2a2 (patch) | |
tree | c7d87ed0ffef428bb583de65c10647c3901cb336 /modules/comment/comment.install | |
parent | 0b007f5413c990686e648aab3919e8fc94d67de1 (diff) | |
download | brdo-2646b43acdd3cf1e11319d8ea5bec01d9eaac2a2.tar.gz brdo-2646b43acdd3cf1e11319d8ea5bec01d9eaac2a2.tar.bz2 |
- Patch #1149912 by grendzy, sun: recent comments block displays old, out-of-order comments.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r-- | modules/comment/comment.install | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index aac95759c..51bfa7453 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -337,6 +337,13 @@ function comment_update_7006(&$sandbox) { } /** + * Add an index to the created column. + */ +function comment_update_7007() { + db_add_index('comment', 'comment_created', array('created')); +} + +/** * @} End of "addtogroup updates-6.x-to-7.x" */ @@ -441,6 +448,7 @@ function comment_schema() { 'comment_num_new' => array('nid', 'status', 'created', 'cid', 'thread'), 'comment_uid' => array('uid'), 'comment_nid_language' => array('nid', 'language'), + 'comment_created' => array('created'), ), 'primary key' => array('cid'), 'foreign keys' => array( |