forked-synapse/synapse/storage/schema/delta
Erik Johnston 1fc1bc2a51 Fix user_threepids schema delta
The delta `37/user_threepids.sql` aimed to update all the email
addresses to be lower case, however duplicate emails may exist in the
table already.

This commit adds a step where the delta moves the duplicate emails to a
new `medium` `email_old`. Only the most recently used account keeps the
binding intact. We move rather than delete so that we retain some record
of which emails were associated with which account.
2016-10-27 14:14:44 +01:00
..
11 copyrights 2016-01-07 04:26:29 +00:00
12 copyrights 2016-01-07 04:26:29 +00:00
13 copyrights 2016-01-07 04:26:29 +00:00
14 Don't require config to create database 2016-04-06 14:15:45 +01:00
15 copyrights 2016-01-07 04:26:29 +00:00
16 Use TEXT instead of VARCHAR(n), since PostgreSQL treats them the same except for a limit 2015-04-28 12:41:33 +01:00
17 copyrights 2016-01-07 04:26:29 +00:00
18 copyrights 2016-01-07 04:26:29 +00:00
19 copyrights 2016-01-07 04:26:29 +00:00
20 Don't require config to create database 2016-04-06 14:15:45 +01:00
21 copyrights 2016-01-07 04:26:29 +00:00
22 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
23 copyrights 2016-01-07 04:26:29 +00:00
24 copyrights 2016-01-07 04:26:29 +00:00
25 Don't require config to create database 2016-04-06 14:15:45 +01:00
26 copyrights 2016-01-07 04:26:29 +00:00
27 Don't require config to create database 2016-04-06 14:15:45 +01:00
28 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
29 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
30 Fix synapse/storage/schema/delta/30/as_users.py 2016-05-31 17:10:40 +01:00
31 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
32 Remove topics table 2016-05-13 14:40:38 +01:00
33 Default device_display_name to null 2016-08-03 11:53:00 +01:00
34 Just move the schema and add some DROPs 2016-09-09 11:04:47 +01:00
35 Drop some unused indices 2016-10-17 11:08:19 +01:00
36 Latest delta is now 37 2016-10-19 11:40:35 +01:00
37 Fix user_threepids schema delta 2016-10-27 14:14:44 +01:00