mirror of https://github.com/LemmyNet/lemmy
Moving matrix_user_id to person table. #1438
parent
4b92e35edc
commit
1745b64ceb
@ -0,0 +1,8 @@
|
||||
alter table local_user add column matrix_user_id text;
|
||||
|
||||
update local_user lu
|
||||
set matrix_user_id = p.matrix_user_id
|
||||
from person p
|
||||
where p.id = lu.person_id;
|
||||
|
||||
alter table person drop column matrix_user_id;
|
@ -0,0 +1,8 @@
|
||||
alter table person add column matrix_user_id text;
|
||||
|
||||
update person p
|
||||
set matrix_user_id = lu.matrix_user_id
|
||||
from local_user lu
|
||||
where p.id = lu.person_id;
|
||||
|
||||
alter table local_user drop column matrix_user_id;
|
Loading…
Reference in New Issue