Change the index to be stream_ordering, highlight

This commit is contained in:
Erik Johnston 2016-09-12 14:04:08 +01:00
parent 5ef5435529
commit fa20c9ce94

View File

@ -36,7 +36,7 @@ class EventPushActionsStore(SQLBaseStore):
self.EPA_HIGHLIGHT_INDEX, self.EPA_HIGHLIGHT_INDEX,
index_name="event_push_actions_u_highlight", index_name="event_push_actions_u_highlight",
table="event_push_actions", table="event_push_actions",
columns=["user_id", "highlight", "stream_ordering"], columns=["user_id", "stream_ordering", "highlight"],
) )
def _set_push_actions_for_event_and_users_txn(self, txn, event, tuples): def _set_push_actions_for_event_and_users_txn(self, txn, event, tuples):