Skip to content

Commit

Permalink
Add migration to mark local communities as such (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikynwa authored Jun 22, 2023
1 parent 08e25d0 commit 4f2fb68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Add a no-op statement to prevent `diesel migration redo` errors
SELECT 1;
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 4f2fb68

Please sign in to comment.