You are here

function ultimate_cron_update_7201 in Ultimate Cron 7.2

Add log type field to log.

File

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

Code

function ultimate_cron_update_7201() {
  db_add_field('ultimate_cron_log', 'log_type', array(
    'description' => 'Log type',
    'type' => 'int',
    'size' => 'normal',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_drop_index('ultimate_cron_log', 'idx_last');
  db_add_index('ultimate_cron_log', 'idx_last', array(
    'name',
    'start_time',
    'end_time',
    'log_type',
  ));
}