forked from extern/egroupware
58 lines
2.0 KiB
PHP
58 lines
2.0 KiB
PHP
<?php
|
|
/**************************************************************************\
|
|
* eGroupWare - Setup *
|
|
* http://www.egroupware.org *
|
|
* -------------------------------------------- *
|
|
* 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$
|
|
|
|
/* Include older eGroupWare update support */
|
|
include('tables_update_0_9_9.inc.php');
|
|
include('tables_update_0_9_10.inc.php');
|
|
include('tables_update_0_9_12.inc.php');
|
|
include('tables_update_0_9_14.inc.php');
|
|
include('tables_update_1_0.inc.php');
|
|
include('tables_update_1_2.inc.php');
|
|
|
|
// updates from the stable 1.4 branch
|
|
$test[] = '1.4.001';
|
|
function phpgwapi_upgrade1_4_001()
|
|
{
|
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.001';
|
|
}
|
|
|
|
$test[] = '1.4.002';
|
|
function phpgwapi_upgrade1_4_002()
|
|
{
|
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.001';
|
|
}
|
|
|
|
$test[] = '1.5.001';
|
|
function phpgwapi_upgrade1_5_001()
|
|
{
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','org_name',array(
|
|
'type' => 'varchar',
|
|
'precision' => '128',
|
|
'nullable' => true
|
|
));
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email',array(
|
|
'type' => 'varchar',
|
|
'precision' => '128',
|
|
'nullable' => true
|
|
));
|
|
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email_home',array(
|
|
'type' => 'varchar',
|
|
'precision' => '128',
|
|
'nullable' => true
|
|
));
|
|
|
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.002';
|
|
}
|
|
|
|
|