mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
51 lines
1.4 KiB
PHP
51 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* EGroupware - API Setup
|
|
*
|
|
* 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');
|
|
include('tables_update_1_4.inc.php');
|
|
include('tables_update_1_6.inc.php');
|
|
|
|
/**
|
|
* Update from the stable 1.8 branch to the new devel branch 1.9.xxx
|
|
*/
|
|
function phpgwapi_upgrade1_8_001()
|
|
{
|
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.001';
|
|
}
|
|
function phpgwapi_upgrade1_8_002()
|
|
{
|
|
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)'));
|
|
|
|
// French language: Français
|
|
$GLOBALS['egw_setup']->db->insert($GLOBALS['egw_setup']->languages_table,array('lang_name' => 'Français'),array('lang_id' => 'fr'),__LINE__,__FILE__);
|
|
|
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.002';
|
|
}
|