summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-05-15 16:22:52 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-05-15 16:22:52 +0000
commit12f45e2a8907c74c6b65d866bc3bab547b31edfa (patch)
tree1651ec37e30ea2d99ab307e8b7cccbc1d19bff02 /priv/repo/migrations
parent0aada88b5594b6714b8d65f8bee9c325d77d6e7b (diff)
downloadpleroma-12f45e2a8907c74c6b65d866bc3bab547b31edfa.tar.gz
pleroma-12f45e2a8907c74c6b65d866bc3bab547b31edfa.zip
update migration
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20190515222404_add_thread_visibility_function.exs (renamed from priv/repo/migrations/20190324222404_add_thread_visibility_function.exs)3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/repo/migrations/20190324222404_add_thread_visibility_function.exs b/priv/repo/migrations/20190515222404_add_thread_visibility_function.exs
index 11aa47e83..a3f717b89 100644
--- a/priv/repo/migrations/20190324222404_add_thread_visibility_function.exs
+++ b/priv/repo/migrations/20190515222404_add_thread_visibility_function.exs
@@ -21,8 +21,9 @@ defmodule Pleroma.Repo.Migrations.AddThreadVisibilityFunction do
LOOP
--- Ensure that we have an activity before continuing.
+ --- If we don't, the thread is not satisfiable.
IF activity IS NULL THEN
- RETURN true;
+ RETURN false;
END IF;
--- We only care about Create activities.