From 1d1271ca1e8a8d1fe6322442d39a8b6fa57a0a7a Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 26 Mar 2018 09:53:47 +0200 Subject: [PATCH] Add index for user follower address. --- ...20180325172351_add_follower_address_index_to_users.exs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs 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 index 000000000..dbf9599b0 --- /dev/null +++ b/priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs @@ -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 -- 2.45.2