]> Untitled Git - lemmy.git/blob - migrations/2023-06-22-051755_fix_local_communities_marked_non_local/up.sql
Add migration to mark local communities as such (#3257)
[lemmy.git] / migrations / 2023-06-22-051755_fix_local_communities_marked_non_local / up.sql
1 update community c
2 set local=true
3 from local_site ls
4   join site s on ls.site_id=s.id
5 where c.instance_id=s.instance_id and not c.local;