From: Roger Braun Date: Sat, 6 May 2017 22:21:15 +0000 (+0200) Subject: Index users by ap_id. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ff2945dfdcc06e2e40e105ed0c98d7e10be0aa3f;p=akkoma Index users by ap_id. --- diff --git a/priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs b/priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs new file mode 100644 index 000000000..864b5e47d --- /dev/null +++ b/priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.AddUniqueIndexToAPID do + use Ecto.Migration + + def change do + create unique_index(:users, [:ap_id]) + end +end