You are here

function ad_update_6007 in Advertisement 6.2

Same name and namespace in other branches
  1. 6.3 ad.install \ad_update_6007()

Add new index to ad_statistics table for running reports.

File

./ad.install, line 470
Advertisement module database schema.

Code

function ad_update_6007() {
  $ret = array();
  db_add_index($ret, 'ad_statistics', 'aid_date_action', array(
    'aid',
    'date',
    'action',
  ));
  db_drop_index($ret, 'ad_statistics', 'aid');
  return $ret;
}