From dbd4c633f94a948fd8c4561db7235e4abf6d6e0b Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 2 Jan 2002 15:26:19 +0000 Subject: [PATCH] API UPGRADE - INSERT-only version update to add missing hooks --- phpgwapi/setup/setup.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 3a9149c3b9..17d183f4c2 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -14,7 +14,7 @@ /* Basic information about this app */ $setup_info['phpgwapi']['name'] = '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']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 67103af36d..924c2c7ea8 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -2224,4 +2224,15 @@ $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.016'; 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']; + } ?>