mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
* Notifications: Database update for notification message field. Fixes notifications with big messages can not be stored or get cut off.
This commit is contained in:
parent
99ef4c07da
commit
bd2342bdf7
@ -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;
|
||||
|
@ -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'),
|
||||
|
@ -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';
|
||||
}
|
Loading…
Reference in New Issue
Block a user