function forum_update_7012

Add 'created' and 'last_comment_timestamp' indexes.

Related topics

File

modules/forum/forum.install, line 460

Code

function forum_update_7012() {
    db_add_index('forum_index', 'created', array(
        'created',
    ));
    db_add_index('forum_index', 'last_comment_timestamp', array(
        'last_comment_timestamp',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.