mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
shorten index on egw_sqlfs.fs_name to improve performance
This commit is contained in:
parent
970078e970
commit
a9c4060dd6
@ -366,7 +366,7 @@ $phpgw_baseline = array(
|
||||
),
|
||||
'pk' => array('fs_id'),
|
||||
'fk' => array(),
|
||||
'ix' => array(array('fs_dir','fs_active','fs_name')),
|
||||
'ix' => array(array('fs_dir','fs_active','fs_name(16)')),
|
||||
'uc' => array()
|
||||
),
|
||||
'egw_index_keywords' => array(
|
||||
|
@ -722,7 +722,7 @@ function phpgwapi_upgrade14_2_024()
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] =
|
||||
empty($GLOBALS['run-from-upgrade14_2_001']) ? '14.3' : '14.2.025';
|
||||
empty($GLOBALS['run-from-upgrade14_2_001']) ? '14.2.026' : '14.2.025';
|
||||
}
|
||||
|
||||
|
||||
@ -752,5 +752,18 @@ function phpgwapi_upgrade14_2_025()
|
||||
'default' => ''
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.2.026';
|
||||
}
|
||||
|
||||
/**
|
||||
* Shorten index on egw_sqlfs.fs_name to improve performance
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function phpgwapi_upgrade14_2_026()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->DropIndex('egw_sqlfs', array('fs_dir','fs_active','fs_name'));
|
||||
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_sqlfs', array('fs_dir','fs_active','fs_name(16)'));
|
||||
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user