From 52cf6344d8430a98d33aacf3f02e0daff67b2e92 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 20 Aug 2015 14:01:40 +0000 Subject: [PATCH] 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. --- emailadmin/setup/tables_update.inc.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/emailadmin/setup/tables_update.inc.php b/emailadmin/setup/tables_update.inc.php index ed557b1a59..d43e3ab9c0 100644 --- a/emailadmin/setup/tables_update.inc.php +++ b/emailadmin/setup/tables_update.inc.php @@ -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'; }