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:
parent
aff6a66178
commit
bed8cc48bc
@ -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'),
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user