X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20190410152859_add_participation_updated_at_index.exs;h=b5ca2fc0fe4de405fca60d6f567e84e0939ef20b;hb=e4e3fd7e5552db274655d58bbbec1e4faabf7ccd;hp=1ce688c52348cf16886414c45799952c661049f6;hpb=a1a0df19c4521bf0073b6bb8dbf8101cf37ebd6b;p=akkoma diff --git a/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs b/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs index 1ce688c52..b5ca2fc0f 100644 --- a/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs +++ b/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs @@ -2,6 +2,6 @@ defmodule Pleroma.Repo.Migrations.AddParticipationUpdatedAtIndex do use Ecto.Migration def change do - create index(:conversation_participations, ["updated_at desc"]) + create_if_not_exists index(:conversation_participations, ["updated_at desc"]) end end