You are here

function ultimate_cron_update_6002 in Ultimate Cron 6

Merge ultimate_cron_function and ultimate_cron_configuration into ultimate_cron

File

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

Code

function ultimate_cron_update_6002() {
  $ret = array();
  $schema = ultimate_cron_schema();
  db_create_table($ret, 'ultimate_cron', $schema['ultimate_cron']);
  $ret[] = update_sql("INSERT INTO {ultimate_cron} SELECT f.fid, f.function, c.configuration AS settings FROM ultimate_cron_function f LEFT JOIN {ultimate_cron_configuration} c ON f.fid = c.fid");
  db_drop_table($ret, 'ultimate_cron_function');
  db_drop_table($ret, 'ultimate_cron_configuration');
  return $ret;
}