change max size for calendar customfields to 16k, as we use it for addressbook and infolog too (was only 255)

This commit is contained in:
Ralf Becker 2016-05-06 12:40:10 +00:00
parent 153c068271
commit 20331879b1
3 changed files with 11 additions and 2 deletions

View File

@ -10,7 +10,7 @@
*/ */
$setup_info['calendar']['name'] = 'calendar'; $setup_info['calendar']['name'] = 'calendar';
$setup_info['calendar']['version'] = '16.1.001'; $setup_info['calendar']['version'] = '16.1.002';
$setup_info['calendar']['app_order'] = 3; $setup_info['calendar']['app_order'] = 3;
$setup_info['calendar']['enable'] = 1; $setup_info['calendar']['enable'] = 1;
$setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true'; $setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true';

View File

@ -75,7 +75,7 @@ $phpgw_baseline = array(
'fd' => array( 'fd' => array(
'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False),
'cal_extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '40','nullable' => False), 'cal_extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '40','nullable' => False),
'cal_extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '255','nullable' => False,'default' => '') 'cal_extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '16384','nullable' => False,'default' => '')
), ),
'pk' => array('cal_id','cal_extra_name'), 'pk' => array('cal_id','cal_extra_name'),
'fk' => array(), 'fk' => array(),

View File

@ -2723,3 +2723,12 @@ function calendar_upgrade16_1()
return $GLOBALS['setup_info']['calendar']['currentver'] = '16.1.001'; return $GLOBALS['setup_info']['calendar']['currentver'] = '16.1.001';
} }
function calendar_upgrade16_1_001()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_extra', 'cal_extra_value',
array('type' => 'varchar','meta' => 'cfvalue','precision' => '16384','nullable' => False,'default' => ''));
return $GLOBALS['setup_info']['calendar']['currentver'] = '16.1.002';
}