]> Untitled Git - lemmy.git/blob - migrations/2021-03-20-185321_move_matrix_id_to_person/up.sql
Moving matrix_user_id to person table. #1438
[lemmy.git] / migrations / 2021-03-20-185321_move_matrix_id_to_person / up.sql
1 alter table person add column matrix_user_id text;
2
3 update person p
4 set matrix_user_id = lu.matrix_user_id 
5 from local_user lu
6 where p.id = lu.person_id;
7
8 alter table local_user drop column matrix_user_id;