API UPGRADE - INSERT-only version update to add missing hooks

This commit is contained in:
Miles Lott 2002-01-02 15:26:19 +00:00
parent 433a23d93e
commit dbd4c633f9
2 changed files with 12 additions and 1 deletions

View File

@ -14,7 +14,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'] = 'phpgwapi'; $setup_info['phpgwapi']['title'] = 'phpgwapi';
$setup_info['phpgwapi']['version'] = '0.9.13.016'; $setup_info['phpgwapi']['version'] = '0.9.13.017';
$setup_info['phpgwapi']['versions']['current_header'] = '1.19'; $setup_info['phpgwapi']['versions']['current_header'] = '1.19';
$setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1; $setup_info['phpgwapi']['app_order'] = 1;

View File

@ -2224,4 +2224,15 @@
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.016'; $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.016';
return $GLOBALS['setup_info']['phpgwapi']['currentver']; return $GLOBALS['setup_info']['phpgwapi']['currentver'];
} }
$test[] = '0.9.13.016';
function phpgwapi_upgrade0_9_13_016()
{
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_hooks (hook_appname,hook_location,hook_filename) VALUES ('admin','config','hook_config.inc.php')");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_hooks (hook_appname,hook_location,hook_filename) VALUES ('preferences','config','hook_config.inc.php')");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_hooks (hook_appname,hook_location,hook_filename) VALUES ('addressbook','config_validate','hook_config_validate.inc.php')");
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.017';
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}
?> ?>