forked from extern/egroupware
changed calendar schema, title to varchar(255) as requested by Matthew Galgoci
This commit is contained in:
parent
9739e104a4
commit
d582d8b68f
@ -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 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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'];
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user