You are here

function ultimate_cron_update_7108 in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 7 ultimate_cron.install \ultimate_cron_update_7108()

Add severity level to log.

File

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

Code

function ultimate_cron_update_7108() {
  if (!db_field_exists('ultimate_cron_log', 'severity')) {

    // 'severity' does not exist, so this update was not run when it was called
    // ultimate_cron_update_6107() - hence it needs to be run.
    db_add_field('ultimate_cron_log', 'severity', array(
      'description' => 'Log level severity',
      'type' => 'int',
      'size' => 'normal',
      'not null' => TRUE,
      'default' => -1,
    ));
  }
}