db->table_names(true); $phpgw_baseline = array(); include (__DIR__.'/tables_current.inc.php'); foreach($phpgw_baseline as $table => $definition) { if (!in_array($table, $tables)) { $GLOBALS['egw_setup']->oProc->CreateTable($table, $definition); } } // uninstall no longer existing EMailAdmin if (in_array('egw_emailadmin', $tables)) { $GLOBALS['egw_setup']->oProc->DropTable('egw_emailadmin'); } $GLOBALS['egw_setup']->deregister_app('emailadmin'); // uninstall obsolete FelamiMail tables, if still around $done = 0; foreach(array_intersect($tables, array('egw_felamimail_accounts', 'egw_felamimail_displayfilter', 'egw_felamimail_signatures')) as $table) { $GLOBALS['egw_setup']->oProc->DropTable($table); if (!$done++) $GLOBALS['egw_setup']->deregister_app('felamimail'); } return $GLOBALS['setup_info']['api']['currentver'] = '16.1'; }