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']; + } ?>