aboutsummaryrefslogtreecommitdiff
path: root/db.go
Commit message (Collapse)AuthorAgeFilesLines
* Allow _ezbr_ to be put in suffix of usernames/room aliases instead of prefixAlex Auvolat2020-02-291-10/+13
|
* Fix Mattermost event deduplicationAlex Auvolat2020-02-291-3/+9
| | | | | | | | | | Mattermost assigns its own IDs to messages, thus when sending a message to Mattermost the event_seen key that has to be written must take into account that ID and not the one that we put in the event (which was the Matrix event ID) Note that for XMPP anything can be used as an ID, so using the Matrix event ID there worked, but it's actually not so good.
* Actually gorm:"type:text" was uselessAlex Auvolat2020-02-281-21/+21
| | | | | | With the Postgres backend, strings will use text by default. Using varchar(255) by default (which is stupid) is done only for sqlite, which doesn't care about the type anyways.
* Fix db models to use text instead of varchar; remove unused columns & fix ↵Alex Auvolat2020-02-281-33/+31
| | | | index names
* Handle matrix left events correctly (hopefully)Alex Auvolat2020-02-281-13/+23
|
* Add LRU cache for some DB operationsAlex Auvolat2020-02-281-27/+82
|
* Rename DbCache to DbKvAlex Auvolat2020-02-281-11/+11
|
* Logging done betterAlex Auvolat2020-02-271-5/+5
|
* Implement account configuration save/load from dbAlex Auvolat2020-02-261-1/+13
|
* Room autorejoinAlex Auvolat2020-02-261-0/+16
|
* Move appservice/ to /Alex Auvolat2020-02-261-0/+266