mirror of https://github.com/LemmyNet/lemmy
Merge pull request #1478 from LemmyNet/fix_wrong_urls
Fixing wrong user_ and community icon and banner urls.pull/1480/head
commit
e0c61c1334
@ -0,0 +1,3 @@
|
||||
-- This is a clean-up migration that cannot be undone,
|
||||
-- but Diesel requires a non-empty script so run a no-op.
|
||||
SELECT 1;
|
@ -0,0 +1,5 @@
|
||||
-- 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%';
|
Loading…
Reference in New Issue