* EMailAdmin: create a unique index for egw_ea_valid table

This commit is contained in:
Ralf Becker 2015-07-06 14:39:39 +00:00
parent 01f2df4ece
commit 9c8ee0fea5
3 changed files with 12 additions and 3 deletions

View File

@ -13,7 +13,7 @@
$setup_info['emailadmin']['name'] = 'emailadmin';
$setup_info['emailadmin']['title'] = 'EMailAdmin';
$setup_info['emailadmin']['version'] = '14.1';
$setup_info['emailadmin']['version'] = '14.2';
$setup_info['emailadmin']['app_order'] = 10;
$setup_info['emailadmin']['enable'] = 2;

View File

@ -148,8 +148,8 @@ $phpgw_baseline = array(
),
'pk' => array(),
'fk' => array(),
'ix' => array(array('acc_id','account_id'),array('account_id','acc_id')),
'uc' => array()
'ix' => array(array('account_id','acc_id')),
'uc' => array(array('acc_id','account_id'))
),
'egw_ea_notifications' => array(
'fd' => array(

View File

@ -882,3 +882,12 @@ function emailadmin_upgrade1_9_019()
{
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '14.1';
}
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);
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '14.2';
}