X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170330153447_add_index_to_objects.exs;h=93198b4623f1fc2d4c67a3f75be09d89c60f527e;hb=78cea44553c936813ffc2c4c47984a64255096ef;hp=30ed61f514b267537d25d8790c6a60426600dfe7;hpb=40eb0e4c24b74e608f11f9f77d9ef2d843641014;p=akkoma diff --git a/priv/repo/migrations/20170330153447_add_index_to_objects.exs b/priv/repo/migrations/20170330153447_add_index_to_objects.exs index 30ed61f51..93198b462 100644 --- a/priv/repo/migrations/20170330153447_add_index_to_objects.exs +++ b/priv/repo/migrations/20170330153447_add_index_to_objects.exs @@ -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