summary refs log tree commit diff
path: root/synapse/storage/databases/main
diff options
context:
space:
mode:
authorreivilibre <38398653+reivilibre@users.noreply.github.com>2020-09-04 15:07:29 +0100
committerGitHub <noreply@github.com>2020-09-04 15:07:29 +0100
commit7513006b09e0fdaa4660c21e32adb0dfa0603c1e (patch)
tree3a2cd448508b55ee688ca2586624b4d87f84d728 /synapse/storage/databases/main
parentCatch up after Federation Outage (split, 2): Track last successful stream ord... (diff)
downloadsynapse-7513006b09e0fdaa4660c21e32adb0dfa0603c1e.tar.xz
In light of #8255, use BIGINTs for destination_rooms (#8256)
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r--synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql b/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql
index 7f173f10d4..ebfbed7925 100644
--- a/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql
+++ b/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql
@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS destination_rooms (
   -- the ID of the room in question
   room_id TEXT NOT NULL REFERENCES rooms (room_id),
   -- the stream_ordering of the event
-  stream_ordering INTEGER NOT NULL,
+  stream_ordering BIGINT NOT NULL,
   PRIMARY KEY (destination, room_id)
   -- We don't declare a foreign key on stream_ordering here because that'd mean
   -- we'd need to either maintain an index (expensive) or do a table scan of