function aggregator_update_7004

Add index on timestamp.

Related topics

File

drupal/modules/aggregator/aggregator.install, line 332
Install, update and uninstall functions for the aggregator module.

Code

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