Ditch COMMENT ON

This commit is contained in:
David Robertson 2023-09-20 12:45:41 +01:00
parent bc5aa5412f
commit e06a5437a7
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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;