From bed8cc48bc2baa1a295c67f34bbfbcf5344b6ec4 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 6 Mar 2014 14:42:29 +0100 Subject: [PATCH] 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. --- classes/Attention.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/Attention.php b/classes/Attention.php index 2ba22df5b3..d152ff892a 100644 --- a/classes/Attention.php +++ b/classes/Attention.php @@ -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'), ), ); -- 2.39.5