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-08-24 11:58:40 +01:00
2016-09-05 10:41:27 +01:00
2016-10-24 15:51:22 +01:00
2016-10-11 13:57:22 +01:00
2016-10-27 14:14:44 +01:00
2016-10-24 13:39:49 +01:00
2016-10-03 10:36:40 +01:00
2016-10-27 11:07:02 +01:00
2016-08-08 16:40:39 +01:00
2016-10-20 13:53:15 +01:00