mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
Add migration to mark local communities as such (#3257)
This commit is contained in:
parent
08e25d0e63
commit
4f2fb68d6b
|
@ -0,0 +1,2 @@
|
|||
-- Add a no-op statement to prevent `diesel migration redo` errors
|
||||
SELECT 1;
|
|
@ -0,0 +1,5 @@
|
|||
update community c
|
||||
set local=true
|
||||
from local_site ls
|
||||
join site s on ls.site_id=s.id
|
||||
where c.instance_id=s.instance_id and not c.local;
|
Loading…
Reference in a new issue