You are here

function scheduler_update_2 in Scheduler 6

Same name and namespace in other branches
  1. 5 scheduler.install \scheduler_update_2()

File

./scheduler.install, line 61
Installation file for Scheduler module.

Code

function scheduler_update_2() {
  $ret = array();
  db_change_column($ret, 'scheduler', 'timestamp_posted', 'publish_on', 'integer', array(
    'not null' => TRUE,
    'default' => "0",
  ));
  db_change_column($ret, 'scheduler', 'timestamp_hidden', 'unpublish_on', 'integer', array(
    'not null' => TRUE,
    'default' => "0",
  ));
  db_add_column($ret, 'scheduler', 'timezone', 'integer', array(
    'not null' => TRUE,
    'default' => "0",
  ));
  return $ret;
}