diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-12 06:46:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-12 06:46:44 +0000 |
commit | b1d8b53a1b6e6fc5b34324a89910d9c70a350b52 (patch) | |
tree | 9cf8e21bffb125924b1585f255d009b5b90d9dde /modules/comment/comment.install | |
parent | 0d1837977841e6c158270e864453969813904305 (diff) | |
download | brdo-b1d8b53a1b6e6fc5b34324a89910d9c70a350b52.tar.gz brdo-b1d8b53a1b6e6fc5b34324a89910d9c70a350b52.tar.bz2 |
- Patch #292984 by sun: add cid to node_comment_statistics() for Views support and simplification of the code.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r-- | modules/comment/comment.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 640b54f7f..f6db6408e 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -195,6 +195,19 @@ function comment_update_7009() { } /** + * Add {node_comment_statistics}.cid column. + */ +function comment_update_7010() { + db_add_field('node_comment_statistics', 'cid', array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + 'description' => 'The {comment}.cid of the last comment.', + )); + db_add_index('node_comment_statistics', 'cid', array('cid')); +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ @@ -331,6 +344,12 @@ function comment_schema() { 'default' => 0, 'description' => 'The {node}.nid for which the statistics are compiled.', ), + 'cid' => array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + 'description' => 'The {comment}.cid of the last comment.', + ), 'last_comment_timestamp' => array( 'type' => 'int', 'not null' => TRUE, |