From d582d8b68f7fb0b9514430b130bd45ca31caf1b1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 18 Oct 2004 21:29:11 +0000 Subject: [PATCH] changed calendar schema, title to varchar(255) as requested by Matthew Galgoci --- calendar/setup/setup.inc.php | 3 ++- calendar/setup/tables_current.inc.php | 2 +- calendar/setup/tables_update.inc.php | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/calendar/setup/setup.inc.php b/calendar/setup/setup.inc.php index 7f456c778c..bad7ebd03a 100755 --- a/calendar/setup/setup.inc.php +++ b/calendar/setup/setup.inc.php @@ -12,7 +12,7 @@ /* $Id$ */ $setup_info['calendar']['name'] = 'calendar'; - $setup_info['calendar']['version'] = '1.0.0.003'; + $setup_info['calendar']['version'] = '1.0.0.004'; $setup_info['calendar']['app_order'] = 3; $setup_info['calendar']['enable'] = 1; @@ -61,3 +61,4 @@ + diff --git a/calendar/setup/tables_current.inc.php b/calendar/setup/tables_current.inc.php index ee2b5645a6..8bf2ace23b 100644 --- a/calendar/setup/tables_current.inc.php +++ b/calendar/setup/tables_current.inc.php @@ -25,7 +25,7 @@ 'cal_priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'), 'cal_type' => array('type' => 'varchar','precision' => '10'), 'cal_public' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '1'), - 'cal_title' => array('type' => 'varchar','precision' => '80','nullable' => False,'default' => '1'), + 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), 'cal_description' => array('type' => 'text'), 'cal_location' => array('type' => 'varchar','precision' => '255'), 'cal_reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index b7ecabf053..caa4a8d3a7 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -1120,4 +1120,19 @@ $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.003'; return $GLOBALS['setup_info']['calendar']['currentver']; } + + + $test[] = '1.0.0.003'; + function calendar_upgrade1_0_0_003() + { + $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_cal','cal_title',array( + 'type' => 'varchar', + 'precision' => '255', + 'nullable' => False, + 'default' => '1' + )); + + $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.004'; + return $GLOBALS['setup_info']['calendar']['currentver']; + } ?>