From a92c5ea81ae1c1713a0b529d94bb427fc9167f5f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Aug 2006 08:15:14 +0000 Subject: [PATCH] new egw_cal.cal_special integer column, to flag calendar entries as eg. birthdays/aniversaries (1). Plans are to use this to store the holidays and and linked entries of timed infolog (eg. phonecalls) too. --- calendar/setup/setup.inc.php | 3 ++- calendar/setup/tables_current.inc.php | 3 ++- calendar/setup/tables_update.inc.php | 13 +++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/calendar/setup/setup.inc.php b/calendar/setup/setup.inc.php index 96d2a7684d..4e40fb8748 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.2.001'; + $setup_info['calendar']['version'] = '1.3.001'; $setup_info['calendar']['app_order'] = 3; $setup_info['calendar']['enable'] = 1; @@ -78,3 +78,4 @@ + diff --git a/calendar/setup/tables_current.inc.php b/calendar/setup/tables_current.inc.php index 1fd9d83c8d..8265f187da 100644 --- a/calendar/setup/tables_current.inc.php +++ b/calendar/setup/tables_current.inc.php @@ -26,7 +26,8 @@ 'cal_location' => array('type' => 'varchar','precision' => '255'), 'cal_reference' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), 'cal_modifier' => array('type' => 'int','precision' => '4'), - 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0') + 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0'), + 'cal_special' => array('type' => 'int','precision' => '2','default' => '0') ), 'pk' => array('cal_id'), 'fk' => array(), diff --git a/calendar/setup/tables_update.inc.php b/calendar/setup/tables_update.inc.php index b2b4ba0e1d..d850e0c67e 100644 --- a/calendar/setup/tables_update.inc.php +++ b/calendar/setup/tables_update.inc.php @@ -1508,3 +1508,16 @@ return $GLOBALS['setup_info']['calendar']['currentver'] = '1.2.001'; } + + $test[] = '1.2.001'; + function calendar_upgrade1_2_001() + { + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_special',array( + 'type' => 'int', + 'precision' => '2', + 'default' => '0' + )); + + return $GLOBALS['setup_info']['calendar']['currentver'] = '1.3.001'; + } +?>