diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-12 16:55:01 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-12 16:55:01 +0100 |
commit | c94de0ab606e5bbe7331a58456204a5775df779b (patch) | |
tree | 18b018ed1b42dc9dc8108d839ed659514775be80 /synapse/storage/event_push_actions.py | |
parent | Merge pull request #1107 from matrix-org/erikj/backfill_none (diff) | |
download | synapse-c94de0ab606e5bbe7331a58456204a5775df779b.tar.xz |
Add WHERE clause support to index creation
Diffstat (limited to 'synapse/storage/event_push_actions.py')
-rw-r--r-- | synapse/storage/event_push_actions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py index 51b13e9498..efa1db3b94 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py @@ -36,7 +36,8 @@ class EventPushActionsStore(SQLBaseStore): self.EPA_HIGHLIGHT_INDEX, index_name="event_push_actions_u_highlight", table="event_push_actions", - columns=["user_id", "stream_ordering", "highlight"], + columns=["user_id", "stream_ordering"], + where_clause="highlight = 1", ) def _set_push_actions_for_event_and_users_txn(self, txn, event, tuples): |