Add an index for Attention notice_ids too

Not sure if this is really needed, since notice_id and profile_id together
build up the primary key. That might cause MySQL to index them anyway.
This commit is contained in:
Mikael Nordfeldth 2014-03-06 14:42:29 +01:00
parent aff6a66178
commit bed8cc48bc

View File

@ -43,6 +43,7 @@ class Attention extends Managed_DataObject
'attention_profile_id_fkey' => array('profile', array('profile_id' => 'id')),
),
'indexes' => array(
'attention_notice_id_idx' => array('notice_id'),
'attention_profile_id_idx' => array('profile_id'),
),
);