minor bug fix

pull/64/head
Aevann1 2022-12-13 21:03:14 +02:00
parent 6fba254510
commit 057f40469c
1 changed files with 1 additions and 0 deletions

View File

@ -1,3 +1,4 @@
update users u set shadowbanned=(select id from users f where username=u.shadowbanned) where shadowbanned is not null;
alter table users alter column shadowbanned type int using shadowbanned::integer;
create index fki_user_shadowbanned_fkey on public.users using btree (shadowbanned);
alter table only public.users add constraint user_shadowbanned_fkey foreign key (shadowbanned) references public.users(id);