2001-02-04 13:27:05 +01:00
|
|
|
<?php
|
2008-04-20 18:34:16 +02:00
|
|
|
/**
|
2010-09-05 17:24:34 +02:00
|
|
|
* EGroupware - API Setup
|
2008-04-20 18:34:16 +02:00
|
|
|
*
|
2010-09-05 17:24:34 +02:00
|
|
|
* Update scripts 1.8 --> 2.0
|
2008-04-20 18:34:16 +02:00
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @package api
|
|
|
|
* @subpackage setup
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2003-08-28 16:31:11 +02:00
|
|
|
|
2008-04-20 18:34:16 +02:00
|
|
|
/* 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');
|
2008-11-03 08:44:02 +01:00
|
|
|
|
|
|
|
/**
|
2010-09-05 17:24:34 +02:00
|
|
|
* Update from the stable 1.8 branch to the new devel branch 1.9.xxx
|
2008-11-03 08:44:02 +01:00
|
|
|
*/
|
2010-09-05 17:24:34 +02:00
|
|
|
function phpgwapi_upgrade1_8_001()
|
2008-11-03 08:44:02 +01:00
|
|
|
{
|
2010-09-05 17:24:34 +02:00
|
|
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.001';
|
2008-11-03 08:44:02 +01:00
|
|
|
}
|
2010-09-15 15:34:01 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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';
|
|
|
|
}
|