This commit is contained in:
Erik Johnston 2017-03-03 15:29:13 +00:00
parent d766343668
commit da52d3af31
2 changed files with 8 additions and 8 deletions

View file

@ -31,10 +31,10 @@ class DeviceInboxStore(BackgroundUpdateStore):
super(DeviceInboxStore, self).__init__(hs)
self.register_background_index_update(
"device_lists_stream_idx",
index_name="device_lists_stream_user_id",
table="device_lists_stream",
columns=["user_id", "device_id"],
"device_inbox_stream_index",
index_name="device_inbox_stream_id_user_id",
table="device_inbox",
columns=["stream_id", "user_id"],
)
self.register_background_update_handler(

View file

@ -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