You are here

function forum_update_7000 in Drupal 7

Add new index to forum table.

File

modules/forum/forum.install, line 261
Install, update, and uninstall functions for the Forum module.

Code

function forum_update_7000() {
  db_drop_index('forum', 'nid');
  db_add_index('forum', 'forum_topic', array(
    'nid',
    'tid',
  ));
}