diff --git a/notifications/setup/setup.inc.php b/notifications/setup/setup.inc.php index 7aa3e17f9b..5cd50aba96 100644 --- a/notifications/setup/setup.inc.php +++ b/notifications/setup/setup.inc.php @@ -14,7 +14,7 @@ if (!defined('NOTIFICATION_APP')) } $setup_info[NOTIFICATION_APP]['name'] = NOTIFICATION_APP; -$setup_info[NOTIFICATION_APP]['version'] = '17.1.001'; +$setup_info[NOTIFICATION_APP]['version'] = '17.1.002'; $setup_info[NOTIFICATION_APP]['app_order'] = 1; $setup_info[NOTIFICATION_APP]['tables'] = array('egw_notificationpopup'); $setup_info[NOTIFICATION_APP]['enable'] = 2; diff --git a/notifications/setup/tables_current.inc.php b/notifications/setup/tables_current.inc.php index 0a93225dae..75339bd937 100644 --- a/notifications/setup/tables_current.inc.php +++ b/notifications/setup/tables_current.inc.php @@ -14,7 +14,7 @@ $phpgw_baseline = array( 'fd' => array( 'notify_id' => array('type' => 'auto','nullable' => False,'comment' => 'primary key'), 'account_id' => array('type' => 'int','meta' => 'user','precision' => '20','nullable' => False,'comment' => 'user to notify'), - 'notify_message' => array('type' => 'varchar','precision' => '16384','comment' => 'notification message'), + 'notify_message' => array('type' => 'text', 'comment' => 'notification message'), 'notify_created' => array('type' => 'timestamp','meta' => 'timestamp','default' => 'current_timestamp','comment' => 'creation time of notification'), 'notify_type' => array('type' => 'ascii','precision' => '32','comment' => 'notification type'), 'notify_status' => array('type' => 'varchar','precision' => '32','comment' => 'notification status'), diff --git a/notifications/setup/tables_update.inc.php b/notifications/setup/tables_update.inc.php index c10bb7bc38..08b505f901 100644 --- a/notifications/setup/tables_update.inc.php +++ b/notifications/setup/tables_update.inc.php @@ -147,4 +147,18 @@ function notifications_upgrade17_1() )); return $GLOBALS['setup_info']['notifications']['currentver'] = '17.1.001'; +} + +/** + * Change notify_message column type from Varchar to Text, this field is a dynamic field. + * + * @return string + */ +function notifications_upgrade17_1_001() +{ + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup','notify_message',array( + 'type' => 'text', + 'comment' => 'notification message' + )); + return $GLOBALS['setup_info']['notifications']['currentver'] = '17.1.002'; } \ No newline at end of file