function aggregator_update_7004

Add index on timestamp.

Related topics

File

modules/aggregator/aggregator.install, line 332

Code

function aggregator_update_7004() {
  if (!db_index_exists('aggregator_item', 'timestamp')) {
    db_add_index('aggregator_item', 'timestamp', array(
      'timestamp',
    ));
  }
}

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