summary refs log tree commit diff
path: root/synapse/storage/schema/delta/33 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move storage classes into a main "data store".Erik Johnston2019-10-217-185/+0
| | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* Run Black. (#5482)Amber Brown2019-06-201-1/+1
|
* run isortAmber Brown2018-07-092-3/+3
|
* Replace ujson with simplejsonErik Johnston2018-03-151-2/+2
|
* Remove the last vestiges of refresh_tokensRichard van der Hoff2017-10-312-33/+0
|
* Default device_display_name to nullRichard van der Hoff2016-08-032-1/+21
| | | | | | It turns out that it's more useful to return a null device display name (and let clients decide how to handle it: eg, falling back to device_id) than using a constant string like "unknown device".
* SQL syntax fixRichard van der Hoff2016-07-271-1/+1
|
* Make the device id on e2e key upload optionalRichard van der Hoff2016-07-261-0/+19
| | | | | | | | | | | | We should now be able to get our device_id from the access_token, so the device_id on the upload request is optional. Where it is supplied, we should check that it matches. For active access_tokens without an associated device_id, we ought to register the device in the devices table. Also update the table on upgrade so that all of the existing e2e keys are associated with real devices.
* Implement deleting devicesRichard van der Hoff2016-07-262-0/+34
|
* Create index on user_ips in the backgroundRichard van der Hoff2016-07-221-1/+2
| | | | | | | | user_ips is kinda big, so really we want to add the index in the background once we're running. Replace the schema delta with one which will do that. I've done this in a way that's reasonably easy to reuse as there a few other indexes I need, and I don't suppose they will be the last.
* GET /devices endpointRichard van der Hoff2016-07-201-0/+16
| | | | | | | implement a GET /devices endpoint which lists all of the user's devices. It also returns the last IP where we saw that device, so there is some dancing to fish that out of the user_ips table.
* Merge pull request #922 from matrix-org/erikj/file_api2Erik Johnston2016-07-201-0/+60
|\ | | | | Feature: Add filter to /messages. Add 'contains_url' to filter.
| * Add sender and contains_url field to events tableErik Johnston2016-07-141-0/+60
| |
* | schema fixRichard van der Hoff2016-07-191-1/+1
| | | | | | | | device_id should be text, not bigint.
* | Add device_id support to /loginRichard van der Hoff2016-07-182-0/+37
|/ | | | | | | | | | | | | Add a 'devices' table to the storage, as well as a 'device_id' column to refresh_tokens. Allow the client to pass a device_id, and initial_device_display_name, to /login. If login is successful, then register the device in the devices table if it wasn't known already. If no device_id was supplied, make one up. Associate the device_id with the access token and refresh token, so that we can get at it again later. Ensure that the device_id is copied from the refresh token to the access_token when the token is refreshed.
* Track approximate last access time for remote mediaErik Johnston2016-06-291-0/+31