diff --git a/api/setup/setup.inc.php b/api/setup/setup.inc.php index e4f80fac7a..310d9e1822 100644 --- a/api/setup/setup.inc.php +++ b/api/setup/setup.inc.php @@ -11,7 +11,7 @@ /* Basic information about this app */ $setup_info['api']['name'] = 'api'; $setup_info['api']['title'] = 'EGroupware API'; -$setup_info['api']['version'] = '19.1.002'; +$setup_info['api']['version'] = '19.1.003'; $setup_info['api']['versions']['current_header'] = '1.29'; // maintenance release in sync with changelog in doc/rpm-build/debian.changes $setup_info['api']['versions']['maintenance_release'] = '19.1.20190925'; @@ -130,4 +130,3 @@ $setup_info['groupdav']['author'] = $setup_info['groupdav']['maintainer'] = arra $setup_info['groupdav']['license'] = 'GPL'; $setup_info['groupdav']['hooks']['preferences'] = 'EGroupware\\Api\\CalDAV\\Hooks::menus'; $setup_info['groupdav']['hooks']['settings'] = 'EGroupware\\Api\\CalDAV\\Hooks::settings'; - diff --git a/api/setup/tables_current.inc.php b/api/setup/tables_current.inc.php index e365a59c5a..69dc024367 100644 --- a/api/setup/tables_current.inc.php +++ b/api/setup/tables_current.inc.php @@ -191,7 +191,7 @@ $phpgw_baseline = array( ), 'pk' => array('link_id'), 'fk' => array(), - 'ix' => array('deleted',array('link_app1','link_id1','link_lastmod'),array('link_app2','link_id2','link_lastmod')), + 'ix' => array('deleted',array('link_app1','link_id1','link_lastmod'),array('link_app2','link_id2','link_lastmod'),array('link_app1','link_app2','link_id1','link_id2')), 'uc' => array() ), 'egw_addressbook' => array( diff --git a/api/setup/tables_update.inc.php b/api/setup/tables_update.inc.php index 53efbddcf3..645ee2559f 100644 --- a/api/setup/tables_update.inc.php +++ b/api/setup/tables_update.inc.php @@ -692,3 +692,15 @@ function api_upgrade19_1_001() } return $GLOBALS['setup_info']['api']['currentver'] = '19.1.002'; } + +/** + * Index to speed up ProjectManager link-/sub-project-queries + * + * @return string + */ +function api_upgrade19_1_002() +{ + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_links', array('link_app1','link_app2','link_id1','link_id2')); + + return $GLOBALS['setup_info']['api']['currentver'] = '19.1.003'; +}