1
0

Add comment on why we don't NOT NULL to_device_stream_id

This commit is contained in:
Andrew Morgan
2021-11-24 16:20:41 +00:00
committed by Olivier Wilkinson (reivilibre)
parent 6f7792a6ee
commit 49bbf65796

View File

@@ -15,4 +15,9 @@
-- Add a column to track what to_device stream id that this application
-- service has been caught up to.
-- We explicitly don't set this field as "NOT NULL", as having NULL as a possible
-- state is useful for determining if we've ever sent traffic for a stream type
-- to an appservice. See https://github.com/matrix-org/synapse/issues/10836 for
-- one way this can be used.
ALTER TABLE application_services_state ADD COLUMN to_device_stream_id BIGINT;