You are here

function aggregator_update_7004 in Drupal 7

Add index on timestamp.

Related topics

File

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',
    ));
  }
}