Add index for user follower address.
authorlain <lain@soykaf.club>
Mon, 26 Mar 2018 07:53:47 +0000 (09:53 +0200)
committerlain <lain@soykaf.club>
Mon, 26 Mar 2018 07:53:47 +0000 (09:53 +0200)
priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs [new file with mode: 0644]

diff --git a/priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs b/priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs
new file mode 100644 (file)
index 0000000..dbf9599
--- /dev/null
@@ -0,0 +1,8 @@
+defmodule Pleroma.Repo.Migrations.AddFollowerAddressIndexToUsers do
+  use Ecto.Migration
+
+  @disable_ddl_transaction true
+  def change do
+    create index(:users, [:follower_address], concurrently: true)
+  end
+end