summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs')
-rw-r--r--priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs b/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
index 82c64396f..807fe3728 100644
--- a/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
+++ b/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
@@ -2,6 +2,6 @@ defmodule Pleroma.Repo.Migrations.AddActorIndexToActivity do
use Ecto.Migration
def change do
- create index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
+ create_if_not_exists index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
end
end