summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-04-01 13:23:18 +0100
committerErik Johnston <erik@matrix.org>2019-04-01 15:25:19 +0100
commit3715c124b3376adaeac53e0dae38f48f6d084f02 (patch)
tree7a155ed832f917b6dc9f31cf8b8441e5e9c3946c /synapse/storage/schema
parentAllowing specifying IS to use in unbind API. (diff)
downloadsynapse-3715c124b3376adaeac53e0dae38f48f6d084f02.tar.xz
Grandfather in existing user threepids
We assume, as we did before, that users bound their threepid to one of
the trusted identity servers. So we simply fill the new table with all
threepids in `user_threepids` joined with the trusted identity servers.
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/53/user_threepid_id.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/53/user_threepid_id.sql b/synapse/storage/schema/delta/53/user_threepid_id.sql
index a68b797f99..6c0b7ec0f7 100644
--- a/synapse/storage/schema/delta/53/user_threepid_id.sql
+++ b/synapse/storage/schema/delta/53/user_threepid_id.sql
@@ -25,3 +25,5 @@ CREATE UNIQUE INDEX user_threepid_id_server_idx ON user_threepid_id_server(
     user_id, medium, address, id_server
 );
 
+INSERT INTO background_updates (update_name, progress_json) VALUES
+  ('user_threepids_grandfather', '{}');