mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix home-accounts in egw_customfields and egw_links to api-accounts
This commit is contained in:
parent
d5c65bb384
commit
e2261d3494
@ -74,14 +74,13 @@ function api_upgrade16_1()
|
|||||||
*/
|
*/
|
||||||
function api_upgrade16_1_001()
|
function api_upgrade16_1_001()
|
||||||
{
|
{
|
||||||
$db = new EGroupware\Api\Db;
|
|
||||||
foreach(array(
|
foreach(array(
|
||||||
'cf_type' => 'egw_customfields',
|
'cf_type' => 'egw_customfields',
|
||||||
'link_app1' => 'egw_links',
|
'link_app1' => 'egw_links',
|
||||||
'link_app2' => 'egw_links',
|
'link_app2' => 'egw_links',
|
||||||
) as $col => $table)
|
) as $col => $table)
|
||||||
{
|
{
|
||||||
$db->query("UPDATE $table SET $col='api-accounts' WHERE $col='home-accounts'", __LINE__, __FILE__);
|
$GLOBALS['egw_setup']->db->query("UPDATE $table SET $col='api-accounts' WHERE $col='home-accounts'", __LINE__, __FILE__);
|
||||||
}
|
}
|
||||||
return $GLOBALS['setup_info']['api']['currentver'] = '16.1.002';
|
return $GLOBALS['setup_info']['api']['currentver'] = '16.1.002';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user