summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-18 10:11:43 +0000
committerErik Johnston <erik@matrix.org>2016-02-18 10:11:43 +0000
commit112283e23005bdaa17b6184cb55fd786facff47d (patch)
tree6028e91034155cce73c2ab36e544cd7267c305b0 /synapse/storage/__init__.py
parentRemove status_msg when going offline. Don't offline -> online if you send a m... (diff)
downloadsynapse-112283e23005bdaa17b6184cb55fd786facff47d.tar.xz
Prefix TS fields with _ts
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 8c3cf9e801..fcb968e8f4 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -203,8 +203,8 @@ class DataStore(RoomMemberStore, RoomStore,
         """
 
         sql = (
-            "SELECT user_id, state, last_active, last_federation_update,"
-            " last_user_sync, status_msg, currently_active FROM presence_stream"
+            "SELECT user_id, state, last_active_ts, last_federation_update_ts,"
+            " last_user_sync_ts, status_msg, currently_active FROM presence_stream"
             " WHERE state != ?"
         )
         sql = self.database_engine.convert_param_style(sql)