Prefix TS fields with _ts

This commit is contained in:
Erik Johnston 2016-02-18 10:11:43 +00:00
parent b31ec214a5
commit 112283e230
4 changed files with 44 additions and 43 deletions

View file

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