You are here

function ga_stats_update_7101 in Google Analytics Statistics 7.2

Same name and namespace in other branches
  1. 7 ga_stats.install \ga_stats_update_7101()

Add an index to the published date value field

File

./ga_stats.install, line 134

Code

function ga_stats_update_7101(&$sandbox) {
  try {
    db_add_index('ga_stats_count', 'ga_stats_count', array(
      'count',
    ));
  } catch (FieldException $e) {
    throw new DrupalUpdateException($e
      ->getMessage());
  }
}