mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Change egw_notificationpopup.notify_message to longtext to avoid error: Data too long for column
This commit is contained in:
parent
48008f4e96
commit
03625583f7
@ -14,7 +14,7 @@ if (!defined('NOTIFICATION_APP'))
|
||||
}
|
||||
|
||||
$setup_info[NOTIFICATION_APP]['name'] = NOTIFICATION_APP;
|
||||
$setup_info[NOTIFICATION_APP]['version'] = '21.1';
|
||||
$setup_info[NOTIFICATION_APP]['version'] = '23.1';
|
||||
$setup_info[NOTIFICATION_APP]['app_order'] = 1;
|
||||
$setup_info[NOTIFICATION_APP]['tables'] = array('egw_notificationpopup');
|
||||
$setup_info[NOTIFICATION_APP]['enable'] = 2;
|
||||
@ -39,4 +39,4 @@ $setup_info[NOTIFICATION_APP]['hooks']['config'] = 'notifications.notifications.
|
||||
$setup_info[NOTIFICATION_APP]['depends'][] = array(
|
||||
'appname' => 'api',
|
||||
'versions' => Array('21.1')
|
||||
);
|
||||
);
|
@ -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' => 'text', 'comment' => 'notification message'),
|
||||
'notify_message' => array('type' => 'longtext','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'),
|
||||
|
@ -192,3 +192,13 @@ function notifications_upgrade20_1()
|
||||
{
|
||||
return $GLOBALS['setup_info']['notifications']['currentver'] = '21.1';
|
||||
}
|
||||
|
||||
function notifications_upgrade21_1()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup','notify_message',array(
|
||||
'type' => 'longtext',
|
||||
'comment' => 'notification message'
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['notifications']['currentver'] = '23.1';
|
||||
}
|
Loading…
Reference in New Issue
Block a user