You are here

function simplenews_scheduler_update_6000 in Simplenews Scheduler 6

Same name and namespace in other branches
  1. 6.2 simplenews_scheduler.install \simplenews_scheduler_update_6000()

Implementation of hook_update_N().

File

./simplenews_scheduler.install, line 86
Install and uninstall functions for the Simplenews Scheduler module.

Code

function simplenews_scheduler_update_6000() {
  $ret = array();
  db_add_field($ret, 'simplenews_scheduler', 'stop', array(
    'type' => 'int',
    'length' => 1,
    'not null' => TRUE,
  ));
  db_add_field($ret, 'simplenews_scheduler', 'stop_date', array(
    'type' => 'int',
    'length' => 11,
    'not null' => TRUE,
    'default' => 1577923199,
  ));
  db_add_field($ret, 'simplenews_scheduler', 'stop_edition', array(
    'type' => 'int',
    'length' => 10,
    'not null' => TRUE,
    'default' => 0,
  ));
  $ret[] = update_sql("ALTER TABLE {simplenews_scheduler} CHANGE sched_interval `interval` VARCHAR(10) NOT NULL DEFAULT '0'");
  $ret[] = update_sql("ALTER TABLE {simplenews_scheduler} CHANGE sched_start start_date INT(11) NOT NULL DEFAULT '0'");
  return $ret;
}