1 alter table local_user add column matrix_user_id text;
4 set matrix_user_id = p.matrix_user_id
6 where p.id = lu.person_id;
8 drop view person_alias_1, person_alias_2;
9 alter table person drop column matrix_user_id;
11 -- Regenerate the person_alias views
12 create view person_alias_1 as select * from person;
13 create view person_alias_2 as select * from person;