X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20180530123448_add_list_follow_index.exs;h=57f8d478f9ad925ea751bacc83e5ea1afa1bf2e3;hb=b2eb1124d115beda0907121c3c6f10783b34f352;hp=d6603e916100691f52db5b90ad2c25eca0a4d951;hpb=5d3fdbc08223a1b8b6f36f2621214285c383b840;p=akkoma diff --git a/priv/repo/migrations/20180530123448_add_list_follow_index.exs b/priv/repo/migrations/20180530123448_add_list_follow_index.exs index d6603e916..57f8d478f 100644 --- a/priv/repo/migrations/20180530123448_add_list_follow_index.exs +++ b/priv/repo/migrations/20180530123448_add_list_follow_index.exs @@ -2,6 +2,6 @@ defmodule Pleroma.Repo.Migrations.AddListFollowIndex do use Ecto.Migration def change do - create index(:lists, [:following]) + create_if_not_exists(index(:lists, [:following])) end end