You are here

function scheduler_update_3 in Scheduler 5

Same name and namespace in other branches
  1. 6 scheduler.install \scheduler_update_3()

File

./scheduler.install, line 53

Code

function scheduler_update_3() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
    case 'pgsql':
      $ret[] = update_sql("UPDATE {scheduler} SET publish_on=publish_on-timezone WHERE publish_on<>0");
      $ret[] = update_sql("UPDATE {scheduler} SET unpublish_on=unpublish_on-timezone WHERE unpublish_on<>0");
      $ret[] = update_sql("ALTER TABLE {scheduler} DROP COLUMN timezone");
      break;
  }
  return $ret;
}