2002-09-29 15:01:40 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
2004-01-27 17:58:19 +01:00
|
|
|
* eGroupWare - Setup *
|
|
|
|
* http://www.egroupware.org *
|
2002-09-29 15:01:40 +02:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
$test[] = '0.9.13.001';
|
|
|
|
function etemplate_upgrade0_9_13_001()
|
|
|
|
{
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_data',array(
|
2002-09-29 15:01:40 +02:00
|
|
|
'type' => 'text',
|
|
|
|
'nullable' => True
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_size',array(
|
2002-09-29 15:01:40 +02:00
|
|
|
'type' => 'char',
|
|
|
|
'precision' => '128',
|
|
|
|
'nullable' => True
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_style',array(
|
2002-09-29 15:01:40 +02:00
|
|
|
'type' => 'text',
|
|
|
|
'nullable' => True
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_etemplate','et_modified',array(
|
2002-09-29 15:01:40 +02:00
|
|
|
'type' => 'int',
|
|
|
|
'precision' => '4',
|
|
|
|
'default' => '0',
|
|
|
|
'nullable' => False
|
|
|
|
));
|
|
|
|
|
|
|
|
$GLOBALS['setup_info']['etemplate']['currentver'] = '0.9.15.001';
|
|
|
|
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
|
|
|
}
|
2003-03-18 01:47:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
$test[] = '0.9.15.001';
|
|
|
|
function etemplate_upgrade0_9_15_001()
|
|
|
|
{
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_name',array(
|
2003-03-18 01:47:05 +01:00
|
|
|
'type' => 'varchar',
|
|
|
|
'precision' => '80',
|
|
|
|
'nullable' => False
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_template',array(
|
2003-03-18 01:47:05 +01:00
|
|
|
'type' => 'varchar',
|
|
|
|
'precision' => '20',
|
|
|
|
'nullable' => False,
|
|
|
|
'default' => ''
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_lang',array(
|
2003-03-18 01:47:05 +01:00
|
|
|
'type' => 'varchar',
|
|
|
|
'precision' => '5',
|
|
|
|
'nullable' => False,
|
|
|
|
'default' => ''
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_version',array(
|
2003-03-18 01:47:05 +01:00
|
|
|
'type' => 'varchar',
|
|
|
|
'precision' => '20',
|
|
|
|
'nullable' => False,
|
|
|
|
'default' => ''
|
|
|
|
));
|
2005-11-09 21:50:45 +01:00
|
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_size',array(
|
2003-03-18 01:47:05 +01:00
|
|
|
'type' => 'varchar',
|
|
|
|
'precision' => '128',
|
|
|
|
'nullable' => True
|
|
|
|
));
|
|
|
|
|
|
|
|
$GLOBALS['setup_info']['etemplate']['currentver'] = '0.9.15.002';
|
|
|
|
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
|
|
|
}
|
2004-07-03 00:32:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
$test[] = '0.9.15.002';
|
|
|
|
function etemplate_upgrade0_9_15_002()
|
|
|
|
{
|
|
|
|
$GLOBALS['setup_info']['etemplate']['currentver'] = '1.0.0';
|
|
|
|
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
|
|
|
}
|
2005-11-09 21:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
$test[] = '1.0.0';
|
|
|
|
function etemplate_upgrade1_0_0()
|
|
|
|
{
|
|
|
|
$GLOBALS['egw_setup']->oProc->RenameTable('phpgw_etemplate','egw_etemplate');
|
|
|
|
|
|
|
|
$GLOBALS['setup_info']['etemplate']['currentver'] = '1.2';
|
|
|
|
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
|
|
|
}
|
2002-09-29 15:01:40 +02:00
|
|
|
?>
|