--- notify.install Fri Jul 09 16:06:38 2010 +++ notify.install.new Tue Jul 27 16:08:20 2010 @@ -15,11 +15,24 @@ function notify_schema() { 'comment' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '2'), 'attempts' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '4'), 'teasers' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '4'), + 'send_last' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), ), 'primary key' => array('uid'), ); return $schema; +} + +function notify_update_1() { + $ret = array(); + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + $ret[] = update_sql("ALTER TABLE {notify} ADD COLUMN send_last int NOT NULL DEFAULT 0;"); + break; + } + + return $ret; } function notify_install() {