Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7059e87

Browse files
committed
Merge commit '7513006b0' into anoa/dinsic_release_1_21_x
* commit '7513006b0': In light of #8255, use BIGINTs for destination_rooms (#8256)
2 parents 47d53b3 + 7513006 commit 7059e87

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/8256.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Track the latest event for every destination and room for catch-up after federation outage.

synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS destination_rooms (
2323
-- the ID of the room in question
2424
room_id TEXT NOT NULL REFERENCES rooms (room_id),
2525
-- the stream_ordering of the event
26-
stream_ordering INTEGER NOT NULL,
26+
stream_ordering BIGINT NOT NULL,
2727
PRIMARY KEY (destination, room_id)
2828
-- We don't declare a foreign key on stream_ordering here because that'd mean
2929
-- we'd need to either maintain an index (expensive) or do a table scan of

0 commit comments

Comments
 (0)