From 2ba2d8aca1f5de9c3b610a4b00573aa4c90cceaf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 2 Jul 2004 22:27:33 +0000 Subject: [PATCH] updating the missed sequenzes (postgres) and pushing all versions to 1.0.0 --- calendar/setup/setup.inc.php | 4 ++-- calendar/setup/tables_update.inc.php | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/calendar/setup/setup.inc.php b/calendar/setup/setup.inc.php index 82ff7428c2..a4064c0089 100755 --- a/calendar/setup/setup.inc.php +++ b/calendar/setup/setup.inc.php @@ -12,7 +12,7 @@ /* $Id$ */ $setup_info['calendar']['name'] = 'calendar'; - $setup_info['calendar']['version'] = '0.9.16.007'; + $setup_info['calendar']['version'] = '1.0.0'; $setup_info['calendar']['app_order'] = 3; $setup_info['calendar']['enable'] = 1; @@ -52,5 +52,5 @@ /* Dependencies for this app to work */ $setup_info['calendar']['depends'][] = array( 'appname' => 'phpgwapi', - 'versions' => Array('0.9.14','0.9.15','0.9.16','1.0.00') + 'versions' => Array('0.9.14','0.9.15','0.9.16','1.0.0') ); diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index 52bca0ad53..5ee5e5df1a 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -1048,7 +1048,8 @@ ($config['mail_suffix'] ? $config['mail_suffix'] : 'local'))). " WHERE uid LIKE '-@%' OR uid=''"); - $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.16.007'; + // we dont need to do update 0.9.16.007, as UpdateSequenze is called now by RefreshTable + $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0'; return $GLOBALS['setup_info']['calendar']['currentver']; } @@ -1059,4 +1060,15 @@ // re-run the update as very old entries only have an empty uid return calendar_upgrade0_9_16_005(); } + + + $test[] = '0.9.16.007'; + function calendar_upgrade0_9_16_007() + { + // update the sequenzes for refreshed tables (postgres only) + $GLOBALS['phpgw_setup']->oProc->UpdateSequence('phpgw_cal_holidays','hol_id'); + + $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0'; + return $GLOBALS['setup_info']['calendar']['currentver']; + } ?>