egroupware_official/phpgwapi/setup/tables_update.inc.php

44 lines
1.1 KiB
PHP
Raw Normal View History

2001-02-04 13:27:05 +01:00
<?php
/**
2010-09-05 17:24:34 +02:00
* EGroupware - API Setup
*
2010-09-05 17:24:34 +02:00
* Update scripts 1.8 --> 2.0
*
* @link http://www.egroupware.org
* @package api
* @subpackage setup
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @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');
2008-11-24 11:51:59 +01:00
include('tables_update_1_4.inc.php');
2010-09-05 17:24:34 +02:00
include('tables_update_1_6.inc.php');
/**
2010-09-05 17:24:34 +02:00
* Update from the stable 1.8 branch to the new devel branch 1.9.xxx
*/
2010-09-05 17:24:34 +02:00
function phpgwapi_upgrade1_8_001()
{
2010-09-05 17:24:34 +02:00
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.001';
}
/**
* Add index to improve import of contacts using a custom field as primary key
*
* @return string
*/
function phpgwapi_upgrade1_9_001()
{
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_addressbook_extra',
array('contact_name','contact_value(32)'));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.002';
}