2006-01-11 06:17:15 +01:00
|
|
|
<?php
|
2006-08-26 18:32:29 +02:00
|
|
|
/**
|
|
|
|
* TimeSheet - setup table updates
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
|
|
* @package timesheet
|
|
|
|
* @subpackage setup
|
|
|
|
* @copyright (c) 2005 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2006-01-11 06:17:15 +01:00
|
|
|
|
|
|
|
$test[] = '0.1.001';
|
|
|
|
function timesheet_upgrade0_1_001()
|
|
|
|
{
|
|
|
|
$GLOBALS['egw_setup']->oProc->AddColumn('egw_timesheet','pl_id',array(
|
|
|
|
'type' => 'int',
|
|
|
|
'precision' => '4',
|
|
|
|
'default' => '0'
|
|
|
|
));
|
|
|
|
|
|
|
|
return $GLOBALS['setup_info']['timesheet']['currentver'] = '0.2.001';
|
|
|
|
}
|
2007-03-08 12:25:09 +01:00
|
|
|
|
|
|
|
$test[] = '0.2.001';
|
|
|
|
function timesheet_upgrade0_2_001()
|
|
|
|
{
|
|
|
|
$GLOBALS['egw_setup']->oProc->CreateTable('egw_timesheet_extra',array(
|
|
|
|
'fd' => array(
|
|
|
|
'ts_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'ts_extra_name' => array('type' => 'varchar','precision' => '32','nullable' => False),
|
|
|
|
'ts_extra_value' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '')
|
|
|
|
),
|
|
|
|
'pk' => array('ts_id','ts_extra_name'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
));
|
|
|
|
|
2007-04-30 11:10:36 +02:00
|
|
|
return $GLOBALS['setup_info']['timesheet']['currentver'] = '0.2.002';
|
|
|
|
}
|
2007-03-08 12:25:09 +01:00
|
|
|
|
2007-04-30 11:10:36 +02:00
|
|
|
$test[] = '0.2.002';
|
|
|
|
function timesheet_upgrade0_2_002()
|
|
|
|
{
|
|
|
|
return $GLOBALS['setup_info']['timesheet']['currentver'] = '1.4';
|
2007-03-08 12:25:09 +01:00
|
|
|
}
|