* InfoLog: change description to longtext (4GB) to not overflow on long comments or PGP encrypted files

This commit is contained in:
Ralf Becker 2016-06-20 14:13:16 +02:00
parent bd5fc3ed11
commit 8e24542501
3 changed files with 19 additions and 2 deletions

3
infolog/setup/setup.inc.php Executable file → Normal file
View File

@ -12,7 +12,7 @@
*/
$setup_info['infolog']['name'] = 'infolog';
$setup_info['infolog']['version'] = '16.1';
$setup_info['infolog']['version'] = '16.1.001';
$setup_info['infolog']['app_order'] = 5;
$setup_info['infolog']['tables'] = array('egw_infolog','egw_infolog_extra');
$setup_info['infolog']['enable'] = 1;
@ -70,3 +70,4 @@ $setup_info['infolog']['depends'][] = array(
'appname' => 'api',
'versions' => Array('16.1')
);

View File

@ -19,7 +19,7 @@ $phpgw_baseline = array(
'info_from' => array('type' => 'varchar','precision' => '255','comment' => 'text of the primary link'),
'info_addr' => array('type' => 'varchar','precision' => '255','comment' => 'textfield for phone-number or email of the primary contact'),
'info_subject' => array('type' => 'varchar','precision' => '255','comment' => 'title of the infolog-entry'),
'info_des' => array('type' => 'text','comment' => 'desciption of the infolog-entry'),
'info_des' => array('type' => 'longtext','comment' => 'desciption of the infolog-entry'),
'info_owner' => array('type' => 'int','meta' => 'account','precision' => '4','nullable' => False,'comment' => 'owner of the entry, can be account or group'),
'info_responsible' => array('type' => 'ascii','meta' => 'account-commasep','precision' => '255','nullable' => False,'default' => '0','comment' => 'responsible users or groups (multiple)'),
'info_access' => array('type' => 'ascii','precision' => '10','default' => 'public','comment' => 'public or privat'),

View File

@ -803,3 +803,19 @@ function infolog_upgrade14_3()
{
return $GLOBALS['setup_info']['infolog']['currentver'] = '16.1';
}
/**
* Change description column from text (64K) to longtext (4G)
*
* @return string
*/
function infolog_upgrade16_1()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_infolog','info_des',array(
'type' => 'longtext',
'comment' => 'desciption of the infolog-entry'
));
return $GLOBALS['setup_info']['infolog']['currentver'] = '16.1.001';
}