projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'cleanup-subscription-controller' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20190109152453_add_visibility_function.exs
diff --git
a/priv/repo/migrations/20190109152453_add_visibility_function.exs
b/priv/repo/migrations/20190109152453_add_visibility_function.exs
index 3aadabcd7ff0edf853ca185c8d5edfa396c78dd0..43d1074aa7327f5febe7dd744c0b2d4dde6cd022 100644
(file)
--- a/
priv/repo/migrations/20190109152453_add_visibility_function.exs
+++ b/
priv/repo/migrations/20190109152453_add_visibility_function.exs
@@
-37,12
+37,14
@@
defmodule Pleroma.Repo.Migrations.AddVisibilityFunction do
end
def down do
end
def down do
- drop(
+ drop
_if_exists
(
index(:activities, ["activity_visibility(actor, recipients, data)"],
name: :activities_visibility_index
)
)
index(:activities, ["activity_visibility(actor, recipients, data)"],
name: :activities_visibility_index
)
)
- execute("drop function activity_visibility(actor varchar, recipients varchar[], data jsonb)")
+ execute(
+ "drop function if exists activity_visibility(actor varchar, recipients varchar[], data jsonb)"
+ )
end
end
end
end