mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Ditch COMMENT ON
This commit is contained in:
parent
bc5aa5412f
commit
e06a5437a7
@ -128,12 +128,10 @@ func NewEventTable(db *sqlx.DB) *EventTable {
|
||||
membership TEXT,
|
||||
is_state BOOLEAN NOT NULL, -- is this event part of the v2 state response?
|
||||
event BYTEA NOT NULL,
|
||||
-- True iff the previous timeline event is not known to the proxy.
|
||||
missing_previous BOOLEAN NOT NULL DEFAULT FALSE
|
||||
);
|
||||
|
||||
COMMENT ON COLUMN syncv3_events.missing_previous IS
|
||||
'True iff the previous timeline event is not known to the proxy.';
|
||||
|
||||
-- index for querying all joined rooms for a given user
|
||||
CREATE INDEX IF NOT EXISTS syncv3_events_type_sk_idx ON syncv3_events(event_type, state_key);
|
||||
-- index for querying membership deltas in particular rooms
|
||||
|
@ -2,9 +2,6 @@
|
||||
ALTER TABLE IF EXISTS syncv3_events
|
||||
ADD COLUMN IF NOT EXISTS missing_previous BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
||||
COMMENT ON COLUMN syncv3_events.missing_previous IS
|
||||
'True iff the previous timeline event is not known to the proxy.';
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE IF EXISTS syncv3_events
|
||||
DROP COLUMN IF EXISTS missing_previous;
|
||||
|
Loading…
x
Reference in New Issue
Block a user