summary refs log tree commit diff
path: root/synapse/storage/devices.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-03 15:29:13 +0000
committerErik Johnston <erik@matrix.org>2017-03-03 15:29:13 +0000
commitda52d3af317f03cd95c2f3158bf95290d828f2aa (patch)
tree29f487263bfa32d563d9db9f6abdf68a3789d2b4 /synapse/storage/devices.py
parentAdd index to device_lists_stream (diff)
downloadsynapse-da52d3af317f03cd95c2f3158bf95290d828f2aa.tar.xz
Fix up
Diffstat (limited to '')
-rw-r--r--synapse/storage/devices.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index ed659b7001..81c43d31f6 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -34,10 +34,10 @@ class DeviceStore(SQLBaseStore):
         )
 
         self.register_background_index_update(
-            "device_inbox_stream_index",
-            index_name="device_inbox_stream_id_user_id",
-            table="device_inbox",
-            columns=["stream_id", "user_id"],
+            "device_lists_stream_idx",
+            index_name="device_lists_stream_user_id",
+            table="device_lists_stream",
+            columns=["user_id", "device_id"],
         )
 
     @defer.inlineCallbacks