You are here

function ultimate_cron_update_7206 in Ultimate Cron 7.2

Improve {ultimate_cron_log} indexes.

File

./ultimate_cron.install, line 1113
Installation file for Ultimate Cron.

Code

function ultimate_cron_update_7206() {
  db_drop_index('ultimate_cron_log', 'idx_last');
  db_add_index('ultimate_cron_log', 'idx_last', array(
    'name',
    'start_time',
    'end_time',
    'log_type',
  ));
  db_add_index('ultimate_cron_log', 'last_log', array(
    'name',
    'log_type',
    'start_time',
  ));
}