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

Commit

Permalink
Update synapse/storage/schema/main/delta/58/05cache_instance.sql.post…
Browse files Browse the repository at this point in the history
…gres

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
  • Loading branch information
Mathieu Velten and squahtx authored Sep 12, 2022
1 parent a19eb80 commit 60b28ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CREATE TABLE cache_invalidation_stream_by_instance (

CREATE UNIQUE INDEX cache_invalidation_stream_by_instance_id ON cache_invalidation_stream_by_instance(stream_id);

-- The sequence needs to begin at 2 because a bunch of code assume that
-- The sequence needs to begin at 2 because a bunch of code assumes that
-- get_next_id_txn will return values >= 2, cf this comment:
-- https://github.com/matrix-org/synapse/blob/b93bd95e8ab64d27ae26841020f62ee61272a5f2/synapse/storage/util/id_generators.py#L344
CREATE SEQUENCE cache_invalidation_stream_seq MINVALUE 2;

0 comments on commit 60b28ab

Please sign in to comment.