From ff2945dfdcc06e2e40e105ed0c98d7e10be0aa3f Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 7 May 2017 00:21:15 +0200 Subject: [PATCH] Index users by ap_id. --- .../migrations/20170506222027_add_unique_index_to_apid.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs 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