Stop writing to event_reference_hashes (#12679)

This table is never read, since #11794. We stop writing to it; in future we can
drop it altogether.
This commit is contained in:
Richard van der Hoff 2022-05-10 15:35:08 +01:00 committed by GitHub
parent dbb12a0b54
commit 147f098fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 38 deletions

View file

@ -58,15 +58,6 @@ class EventFederationWorkerStoreTestCase(tests.unittest.HomeserverTestCase):
(room_id, event_id),
)
txn.execute(
(
"INSERT INTO event_reference_hashes "
"(event_id, algorithm, hash) "
"VALUES (?, 'sha256', ?)"
),
(event_id, bytearray(b"ffff")),
)
for i in range(0, 20):
self.get_success(
self.store.db_pool.runInteraction("insert", insert_event, i)