From: lain Date: Mon, 26 Mar 2018 07:53:47 +0000 (+0200) Subject: Add index for user follower address. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1d1271ca1e8a8d1fe6322442d39a8b6fa57a0a7a;p=akkoma Add index for user follower address. --- 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