mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Remove uses of REPLACE and ON CONFLICT IGNORE to make the SQL more portable.
This commit is contained in:
parent
9a7f496298
commit
6e7131f02f
4 changed files with 4 additions and 16 deletions
|
@ -56,7 +56,6 @@ class SignatureStore(SQLBaseStore):
|
|||
"algorithm": algorithm,
|
||||
"hash": buffer(hash_bytes),
|
||||
},
|
||||
or_ignore=True,
|
||||
)
|
||||
|
||||
def get_event_reference_hashes(self, event_ids):
|
||||
|
@ -119,7 +118,6 @@ class SignatureStore(SQLBaseStore):
|
|||
"algorithm": algorithm,
|
||||
"hash": buffer(hash_bytes),
|
||||
},
|
||||
or_ignore=True,
|
||||
)
|
||||
|
||||
def _get_event_signatures_txn(self, txn, event_id):
|
||||
|
@ -164,7 +162,6 @@ class SignatureStore(SQLBaseStore):
|
|||
"key_id": key_id,
|
||||
"signature": buffer(signature_bytes),
|
||||
},
|
||||
or_ignore=True,
|
||||
)
|
||||
|
||||
def _get_prev_event_hashes_txn(self, txn, event_id):
|
||||
|
@ -198,5 +195,4 @@ class SignatureStore(SQLBaseStore):
|
|||
"algorithm": algorithm,
|
||||
"hash": buffer(hash_bytes),
|
||||
},
|
||||
or_ignore=True,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue