oProc->AlterColumn('egw_notificationpopup','account_id',array( 'type' => 'int', 'precision' => '20', 'nullable' => False )); return $GLOBALS['setup_info']['notifications']['currentver'] = '0.6'; } function notifications_upgrade0_6() { return $GLOBALS['setup_info']['notifications']['currentver'] = '1.4'; } function notifications_upgrade1_4() { return $GLOBALS['setup_info']['notifications']['currentver'] = '1.6'; } function notifications_upgrade1_6() { return $GLOBALS['setup_info']['notifications']['currentver'] = '1.8'; } function notifications_upgrade1_8() { $GLOBALS['egw_setup']->oProc->DropColumn('egw_notificationpopup',array( 'fd' => array( 'account_id' => array('type' => 'int','precision' => '20','nullable' => False), 'message' => array('type' => 'longtext') ), 'pk' => array(), 'fk' => array(), 'ix' => array('account_id'), 'uc' => array() ),'session_id'); return $GLOBALS['setup_info']['notifications']['currentver'] = '1.9.001'; } function notifications_upgrade1_9_001() { // empty notificationpopup table, as it can contain thousands of old entries, not delivered before $GLOBALS['egw_setup']->db->query('DELETE FROM egw_notificationpopup'); return $GLOBALS['setup_info']['notifications']['currentver'] = '1.9.002'; }