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
..
2016-10-27 14:14:44 +01:00
2016-04-07 16:52:07 +01:00
2016-07-22 13:21:07 +01:00
2016-08-03 15:42:08 +01:00
2016-09-21 16:28:47 +01:00
2016-09-12 17:05:54 +01:00
2016-01-28 17:09:09 +00:00
2016-10-17 11:17:45 +01:00
2016-09-05 10:52:01 +01:00
2016-08-19 14:17:11 +01:00
2016-10-14 16:20:24 +01:00
2016-01-07 04:26:29 +00:00
2016-09-23 16:49:21 +01:00
2016-08-19 14:17:11 +01:00
2016-09-27 09:27:54 +01:00