mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix typo in column-name and added SQL to add index in MySQL
This commit is contained in:
parent
fb00481043
commit
6f9fb0b104
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user