From 20331879b1ce0c40482fdf5686b60ceb1f3664ca Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 6 May 2016 12:40:10 +0000 Subject: [PATCH] change max size for calendar customfields to 16k, as we use it for addressbook and infolog too (was only 255) --- calendar/setup/setup.inc.php | 2 +- calendar/setup/tables_current.inc.php | 2 +- calendar/setup/tables_update.inc.php | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/calendar/setup/setup.inc.php b/calendar/setup/setup.inc.php index b9f900fab7..8323255f75 100755 --- a/calendar/setup/setup.inc.php +++ b/calendar/setup/setup.inc.php @@ -10,7 +10,7 @@ */ $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']['enable'] = 1; $setup_info['calendar']['index'] = 'calendar.calendar_uiviews.index&ajax=true'; diff --git a/calendar/setup/tables_current.inc.php b/calendar/setup/tables_current.inc.php index 3901acc4f6..05f1eb73aa 100644 --- a/calendar/setup/tables_current.inc.php +++ b/calendar/setup/tables_current.inc.php @@ -75,7 +75,7 @@ $phpgw_baseline = array( 'fd' => array( 'cal_id' => array('type' => 'int','precision' => '4','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'), 'fk' => array(), diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index a236a8e670..82083cbc6e 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -2723,3 +2723,12 @@ function calendar_upgrade16_1() 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'; +}