mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:12 +01:00
since DropIndex on egw_ea_valid for the unique index seems not to work in postgres, we use refreshTable to do so; This is a workaround, not a fix.
This commit is contained in:
parent
ece7a07030
commit
52cf6344d8
@ -886,8 +886,16 @@ function emailadmin_upgrade1_9_019()
|
||||
|
||||
function emailadmin_upgrade14_1()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->DropIndex('egw_ea_valid', array('acc_id', 'account_id'));
|
||||
$GLOBALS['egw_setup']->oProc->CreateIndex('egw_ea_valid', array('acc_id', 'account_id'), true);
|
||||
$GLOBALS['egw_setup']->oProc->RefreshTable('egw_ea_valid',array(
|
||||
'fd' => array(
|
||||
'acc_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
||||
'account_id' => array('type' => 'int','meta' => 'account','precision' => '4','nullable' => False)
|
||||
),
|
||||
'pk' => array(),
|
||||
'fk' => array(),
|
||||
'ix' => array(array('account_id','acc_id')),
|
||||
'uc' => array(array('acc_id','account_id'))
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '14.2';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user