diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-20 14:58:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-20 14:58:30 +0000 |
commit | e00f620dbc598be62b1a2aa7b84afec3f3863107 (patch) | |
tree | e4f5492a0efa8d10818e9be90a04bd6a84d4e6b5 /modules/forum/forum.install | |
parent | 5dd8314d0a76408969a6679e0574883917d0caf3 (diff) | |
download | brdo-e00f620dbc598be62b1a2aa7b84afec3f3863107.tar.gz brdo-e00f620dbc598be62b1a2aa7b84afec3f3863107.tar.bz2 |
- Patch #554164 by catch: join on {forum} instead of {term_node} for forum queries.
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r-- | modules/forum/forum.install | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install index 3b8702231..6ad9ee9b7 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -102,7 +102,7 @@ function forum_schema() { ), ), 'indexes' => array( - 'nid' => array('nid'), + 'forum_topic' => array('nid', 'tid'), 'tid' => array('tid'), ), 'primary key' => array('vid'), @@ -114,3 +114,14 @@ function forum_schema() { return $schema; } + +/** + * Add new index to forum table. + */ +function forum_update_7000() { + $ret = array(); + db_drop_index($ret, 'forum', 'nid'); + db_add_index($ret, 'forum', 'forum_topic', array('nid', 'tid')); + + return $ret; +} |