]> Untitled Git - lemmy.git/blob - migrations/2021-03-04-040229_clean_icon_urls/up.sql
Revert "Attempt to fix CI building wrong commits (#3830)"
[lemmy.git] / migrations / 2021-03-04-040229_clean_icon_urls / up.sql
1 -- If these are not urls, it will crash the server
2 UPDATE
3     user_
4 SET
5     avatar = NULL
6 WHERE
7     avatar NOT LIKE 'http%';
8
9 UPDATE
10     user_
11 SET
12     banner = NULL
13 WHERE
14     banner NOT LIKE 'http%';
15
16 UPDATE
17     community
18 SET
19     icon = NULL
20 WHERE
21     icon NOT LIKE 'http%';
22
23 UPDATE
24     community
25 SET
26     banner = NULL
27 WHERE
28     banner NOT LIKE 'http%';
29