changed calendar schema, title to varchar(255) as requested by Matthew Galgoci

This commit is contained in:
Ralf Becker 2004-10-18 21:29:11 +00:00
parent 9739e104a4
commit d582d8b68f
3 changed files with 18 additions and 2 deletions

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$setup_info['calendar']['name'] = 'calendar'; $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']['app_order'] = 3;
$setup_info['calendar']['enable'] = 1; $setup_info['calendar']['enable'] = 1;
@ -61,3 +61,4 @@

View File

@ -25,7 +25,7 @@
'cal_priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'), 'cal_priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'),
'cal_type' => array('type' => 'varchar','precision' => '10'), 'cal_type' => array('type' => 'varchar','precision' => '10'),
'cal_public' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '1'), '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_description' => array('type' => 'text'),
'cal_location' => array('type' => 'varchar','precision' => '255'), 'cal_location' => array('type' => 'varchar','precision' => '255'),
'cal_reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') 'cal_reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0')

View File

@ -1120,4 +1120,19 @@
$GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.003'; $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.003';
return $GLOBALS['setup_info']['calendar']['currentver']; 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'];
}
?> ?>