lemmy/migrations/2021-03-04-040229_clean_icon_urls/up.sql
2021-03-03 23:40:00 -05:00

6 lines
303 B
SQL

-- If these are not urls, it will crash the server
update user_ set avatar = NULL where avatar not like 'http%';
update user_ set banner = NULL where banner not like 'http%';
update community set icon = NULL where icon not like 'http%';
update community set banner = NULL where banner not like 'http%';