mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating schema
This commit is contained in:
parent
f5cf7ac25b
commit
82c5820767
8 changed files with 18 additions and 13 deletions
|
@ -118,6 +118,7 @@ class Pdu(JsonEncodedObject):
|
|||
"""
|
||||
if pdu_tuple:
|
||||
d = copy.copy(pdu_tuple.pdu_entry._asdict())
|
||||
d["origin_server_ts"] = d.pop("ts")
|
||||
|
||||
d["content"] = json.loads(d["content_json"])
|
||||
del d["content_json"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue