diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2020-10-07 08:00:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 08:00:17 -0400 |
commit | 4cb44a158549e83d42061b02a8b704e7d5873b21 (patch) | |
tree | 99133291679616b67fdf071be7b29b6b19dd1338 /synapse/storage/databases/main/schema | |
parent | Merge pull request #8463 from matrix-org/rav/clean_up_event_handling (diff) | |
download | synapse-4cb44a158549e83d42061b02a8b704e7d5873b21.tar.xz |
Add support for MSC2697: Dehydrated devices (#8380)
This allows a user to store an offline device on the server and then restore it at a subsequent login.
Diffstat (limited to 'synapse/storage/databases/main/schema')
-rw-r--r-- | synapse/storage/databases/main/schema/delta/58/11dehydration.sql | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/schema/delta/58/11dehydration.sql b/synapse/storage/databases/main/schema/delta/58/11dehydration.sql new file mode 100644 index 0000000000..7851a0a825 --- /dev/null +++ b/synapse/storage/databases/main/schema/delta/58/11dehydration.sql @@ -0,0 +1,20 @@ +/* Copyright 2020 The Matrix.org Foundation C.I.C + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +CREATE TABLE IF NOT EXISTS dehydrated_devices( + user_id TEXT NOT NULL PRIMARY KEY, + device_id TEXT NOT NULL, + device_data TEXT NOT NULL -- JSON-encoded client-defined data +); |