lemmy/migrations/2021-11-22-143904_add_required_public_key/up.sql
2021-11-22 10:10:18 -05:00

8 lines
263 B
SQL

-- Delete the empty public keys
delete from community where public_key is null;
delete from person where public_key is null;
-- Make it required
alter table community alter column public_key set not null;
alter table person alter column public_key set not null;