* PostgreSQL: repairing/creating missing indexes

This commit is contained in:
Ralf Becker 2015-08-26 14:16:28 +00:00
parent cec4fa26c4
commit 547335c139
2 changed files with 17 additions and 1 deletions

View File

@ -12,7 +12,7 @@
/* Basic information about this app */ /* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi'; $setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'EGroupware API'; $setup_info['phpgwapi']['title'] = 'EGroupware API';
$setup_info['phpgwapi']['version'] = '14.3.003'; $setup_info['phpgwapi']['version'] = '14.3.004';
$setup_info['phpgwapi']['versions']['current_header'] = '1.29'; $setup_info['phpgwapi']['versions']['current_header'] = '1.29';
$setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1; $setup_info['phpgwapi']['app_order'] = 1;

View File

@ -835,3 +835,19 @@ function phpgwapi_upgrade14_3_002()
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3.003'; return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3.003';
} }
/**
* Check and if necessary fix indexes, they have been completly lost on PostgreSQL with previous updates
*
* @return string
*/
function phpgwapi_upgrade14_3_003()
{
$GLOBALS['run-from-upgrade14_3_003'] = true;
if ($GLOBALS['egw_setup']->db->Type == 'pgsql')
{
$GLOBALS['egw_setup']->oProc->CheckCreateIndexes();
}
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3.004';
}