diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-12-11 14:02:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 14:02:17 +0000 |
commit | ebcacd1bb56d6e37ff743c0430bc91e24d440199 (patch) | |
tree | d9cd72accebe4004e8eb067026ab0158ccff0a1a /syncapi/storage/tables/interface.go | |
parent | c55361c1b88b272c9a06e7dbc61f60e3effbd063 (diff) |
Give receipts their own stream ID in the database (#1631)
* Give read recipts their own database sequence
* Give receipts their own stream ID
* Change migration names
* Reset sequences
* Add max receipt queries, missing stream_id table entry for SQLite
Diffstat (limited to 'syncapi/storage/tables/interface.go')
-rw-r--r-- | syncapi/storage/tables/interface.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/syncapi/storage/tables/interface.go b/syncapi/storage/tables/interface.go index a2d8791b..7a166d43 100644 --- a/syncapi/storage/tables/interface.go +++ b/syncapi/storage/tables/interface.go @@ -161,4 +161,5 @@ type Filter interface { type Receipts interface { UpsertReceipt(ctx context.Context, txn *sql.Tx, roomId, receiptType, userId, eventId string, timestamp gomatrixserverlib.Timestamp) (pos types.StreamPosition, err error) SelectRoomReceiptsAfter(ctx context.Context, roomIDs []string, streamPos types.StreamPosition) ([]eduAPI.OutputReceiptEvent, error) + SelectMaxReceiptID(ctx context.Context, txn *sql.Tx) (id int64, err error) } |