From 4222f03ac50b3cde88d8bfd6d1185c5a795bbe9c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Oct 2008 07:21:23 +0000 Subject: [PATCH] version to 1.6 incl. API dependences --- notifications/setup/setup.inc.php | 14 +++--- notifications/setup/tables_update.inc.php | 56 ++++++++++++----------- 2 files changed, 36 insertions(+), 34 deletions(-) diff --git a/notifications/setup/setup.inc.php b/notifications/setup/setup.inc.php index 39d0f21b89..59bca50515 100644 --- a/notifications/setup/setup.inc.php +++ b/notifications/setup/setup.inc.php @@ -15,18 +15,18 @@ if (!defined('NOTIFICATION_APP')) } $setup_info[NOTIFICATION_APP]['name'] = NOTIFICATION_APP; -$setup_info[NOTIFICATION_APP]['version'] = '1.4'; +$setup_info[NOTIFICATION_APP]['version'] = '1.6'; $setup_info[NOTIFICATION_APP]['app_order'] = 1; $setup_info[NOTIFICATION_APP]['tables'] = array('egw_notificationpopup'); $setup_info[NOTIFICATION_APP]['enable'] = 2; -$setup_info[NOTIFICATION_APP]['author'] = +$setup_info[NOTIFICATION_APP]['author'] = 'Cornelius Weiss'; $setup_info[NOTIFICATION_APP]['maintainer'] = array( - 'name' => 'Cornelius Weiss', - 'email' => 'nelius@cwtech.de' + 'name' => 'eGroupware coreteam', + 'email' => 'egroupware-developers@lists.sf.net' ); $setup_info[NOTIFICATION_APP]['license'] = 'GPL'; -$setup_info[NOTIFICATION_APP]['description'] = +$setup_info[NOTIFICATION_APP]['description'] = 'Instant notification of users via various channels.'; /* The hooks this app includes, needed for hooks registration */ @@ -42,10 +42,10 @@ $setup_info[NOTIFICATION_APP]['hooks'][] = 'admin'; /* Dependencies for this app to work */ $setup_info[NOTIFICATION_APP]['depends'][] = array( 'appname' => 'phpgwapi', - 'versions' => Array('1.3','1.4','1.5') + 'versions' => Array('1.5','1.6','1.7') ); $setup_info[NOTIFICATION_APP]['depends'][] = array( 'appname' => 'etemplate', - 'versions' => Array('1.3','1.4','1.5') + 'versions' => Array('1.5','1.6','1.7') ); diff --git a/notifications/setup/tables_update.inc.php b/notifications/setup/tables_update.inc.php index 15099a8354..26d7db710e 100644 --- a/notifications/setup/tables_update.inc.php +++ b/notifications/setup/tables_update.inc.php @@ -1,32 +1,34 @@ oProc->AlterColumn('egw_notificationpopup','account_id',array( + 'type' => 'int', + 'precision' => '20', + 'nullable' => False + )); - $test[] = '0.5'; - function notifications_upgrade0_5() - { - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup','account_id',array( - 'type' => 'int', - 'precision' => '20', - 'nullable' => False - )); - - return $GLOBALS['setup_info']['notifications']['currentver'] = '0.6'; - } + return $GLOBALS['setup_info']['notifications']['currentver'] = '0.6'; +} - $test[] = '0.6'; - function notifications_upgrade0_6() - { - return $GLOBALS['setup_info']['notifications']['currentver'] = '1.4'; - } -?> +function notifications_upgrade0_6() +{ + return $GLOBALS['setup_info']['notifications']['currentver'] = '1.4'; +} + + +function notifications_upgrade1_4() +{ + return $GLOBALS['setup_info']['notifications']['currentver'] = '1.6'; +}