'indexes' => array(
'group_inbox_created_idx' => array('created'),
'group_inbox_notice_id_idx' => array('notice_id'),
+ 'group_inbox_group_id_created_notice_id_idx' => array('group_id', 'created', 'notice_id'),
),
);
}
// @fixme probably we want a (profile_id, created) index here?
'group_member_profile_id_idx' => array('profile_id'),
'group_member_created_idx' => array('created'),
+ 'group_member_profile_id_created_idx' => array('profile_id', 'created'),
+ 'group_member_group_id_created_idx' => array('group_id', 'created'),
),
);
}
'notice_repeat_of_fkey' => array('notice', array('repeat_of' => 'id')), # @fixme: what about repeats of deleted notices?
),
'indexes' => array(
+ 'notice_created_id_is_local_idx' => array('created', 'id', 'is_local'),
'notice_profile_id_idx' => array('profile_id', 'created', 'id'),
- 'notice_conversation_idx' => array('conversation'),
- 'notice_created_idx' => array('created'),
- 'notice_replyto_idx' => array('reply_to'),
- 'notice_repeatof_idx' => array('repeat_of'),
+ 'notice_repeat_of_created_id_idx' => array('repeat_of', 'created', 'id'),
+ 'notice_conversation_created_id_idx' => array('conversation', 'created', 'id'),
+ 'notice_replyto_idx' => array('reply_to')
)
);
'indexes' => array(
'notice_tag_created_idx' => array('created'),
'notice_tag_notice_id_idx' => array('notice_id'),
+ 'notice_tag_tag_created_notice_id_idx' => array('tag', 'created', 'notice_id')
),
);
}
'foreign keys' => array(
'profile_role_profile_id_fkey' => array('profile', array('profile_id' => 'id')),
),
+ 'indexes' => array('profile_role_role_created_profile_id_idx' => array('role', 'created', 'profile_id')),
);
}
'reply_notice_id_idx' => array('notice_id'),
'reply_profile_id_idx' => array('profile_id'),
'reply_replied_id_idx' => array('replied_id'),
+ 'reply_profile_id_modified_notice_id_idx' => array('profile_id', 'modified', 'notice_id')
),
);
}