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