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.

This commit is contained in:
Ralf Becker 2006-08-21 08:15:14 +00:00
parent 56382e2c1a
commit a92c5ea81a
3 changed files with 17 additions and 2 deletions

View File

@ -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 @@

View File

@ -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(),

View File

@ -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';
}
?>