X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=priv%2Frepo%2Fmigrations%2F20171130135819_add_local_index_to_user.exs;h=76bf9584ed9b4456395c9aa99c99ce666c2ad8e2;hb=4a94c9a31ef11f63ea71ad9c1f085c18cf8ef083;hp=25716be213693c2036862498a340e4a7f7fa1266;hpb=72f7baa6548dbd5cc5ae4c37d9c2e53126203449;p=akkoma diff --git a/priv/repo/migrations/20171130135819_add_local_index_to_user.exs b/priv/repo/migrations/20171130135819_add_local_index_to_user.exs index 25716be21..76bf9584e 100644 --- a/priv/repo/migrations/20171130135819_add_local_index_to_user.exs +++ b/priv/repo/migrations/20171130135819_add_local_index_to_user.exs @@ -2,6 +2,6 @@ defmodule Pleroma.Repo.Migrations.AddLocalIndexToUser do use Ecto.Migration def change do - create index(:users, [:local]) + create_if_not_exists(index(:users, [:local])) end end