You are here

function ultimate_cron_update_6000 in Ultimate Cron 6

Implements hook_update_N().

File

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

Code

function ultimate_cron_update_6000() {
  $ret = array();
  db_add_field($ret, 'ultimate_cron_log', 'msg', array(
    'description' => 'Message',
    'type' => 'text',
    'not null' => FALSE,
  ));
  $ret[] = update_sql("UPDATE {ultimate_cron_log} l JOIN {ultimate_cron_log_message} m ON l.lid = m.lid SET l.msg = m.msg");
  db_drop_table($ret, 'ultimate_cron_log_message');
  return $ret;
}