mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
Add index to improve import of contacts using a custom field as primary key
This commit is contained in:
parent
7fc2abea23
commit
5f73878a24
@ -12,7 +12,7 @@
|
||||
/* Basic information about this app */
|
||||
$setup_info['phpgwapi']['name'] = 'phpgwapi';
|
||||
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
|
||||
$setup_info['phpgwapi']['version'] = '1.9.001';
|
||||
$setup_info['phpgwapi']['version'] = '1.9.002';
|
||||
$setup_info['phpgwapi']['versions']['current_header'] = '1.29';
|
||||
$setup_info['phpgwapi']['enable'] = 3;
|
||||
$setup_info['phpgwapi']['app_order'] = 1;
|
||||
|
@ -403,7 +403,7 @@ $phpgw_baseline = array(
|
||||
),
|
||||
'pk' => array('contact_id','contact_name'),
|
||||
'fk' => array(),
|
||||
'ix' => array(),
|
||||
'ix' => array(array('contact_name','contact_value(32)')),
|
||||
'uc' => array()
|
||||
),
|
||||
'egw_addressbook_lists' => array(
|
||||
|
@ -28,3 +28,16 @@ function phpgwapi_upgrade1_8_001()
|
||||
{
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.001';
|
||||
}
|
||||
|
||||
/**
|
||||
* Add index to improve import of contacts using a custom field as primary key
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function phpgwapi_upgrade1_9_001()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_addressbook_extra',
|
||||
array('contact_name','contact_value(32)'));
|
||||
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.002';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user