fix typo in column-name and added SQL to add index in MySQL

This commit is contained in:
Ralf Becker 2012-06-12 07:02:59 +00:00
parent fb00481043
commit 6f9fb0b104

View File

@ -430,12 +430,16 @@ function phpgwapi_upgrade1_9_015()
/**
* Some index to speed up access/update of huge access-logs
*
* ALTER TABLE `egw_access_log` ADD INDEX `egw_access_log_session_php` ( `session_php` )
* ALTER TABLE `egw_access_log` ADD INDEX `egw_access_log_account_id_ip_li` ( `account_id` , `ip` , `li` )
* ALTER TABLE `egw_access_log` ADD INDEX `egw_access_log_account_id_loginid_li` ( `account_id` , `loginid` , `li` )
*/
function phpgwapi_upgrade1_9_016()
{
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_access_log','session_php');
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_access_log',array('acount_id','ip','li'));
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_access_log',array('acount_id','loginid','li'));
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_access_log',array('account_id','ip','li'));
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_access_log',array('account_id','loginid','li'));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.017';
}