Index users by ap_id.
authorRoger Braun <roger@rogerbraun.net>
Sat, 6 May 2017 22:21:15 +0000 (00:21 +0200)
committerRoger Braun <roger@rogerbraun.net>
Sat, 6 May 2017 22:21:15 +0000 (00:21 +0200)
priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs [new file with mode: 0644]

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 (file)
index 0000000..864b5e4
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddUniqueIndexToAPID do
+  use Ecto.Migration
+
+  def change do
+    create unique_index(:users, [:ap_id])
+  end
+end