Merge branch 'instance-deletion' into 'develop'
[akkoma] / priv / repo / migrations / 20170330153447_add_index_to_objects.exs
index 30ed61f514b267537d25d8790c6a60426600dfe7..93198b4623f1fc2d4c67a3f75be09d89c60f527e 100644 (file)
@@ -2,6 +2,6 @@ defmodule Pleroma.Repo.Migrations.AddIndexToObjects do
   use Ecto.Migration
 
   def change do
-    create index(:objects, [:data], using: :gin)
+    create_if_not_exists(index(:objects, [:data], using: :gin))
   end
 end