diff options
author | lain <lain@soykaf.club> | 2018-03-26 09:53:47 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-03-26 09:53:47 +0200 |
commit | 1d1271ca1e8a8d1fe6322442d39a8b6fa57a0a7a (patch) | |
tree | f89996dac919f0cb01408ab78c687a6bece3d391 | |
parent | 46f63ea8afa2f1405934b7cae181bfad8a653de2 (diff) | |
download | pleroma-1d1271ca1e8a8d1fe6322442d39a8b6fa57a0a7a.tar.gz pleroma-1d1271ca1e8a8d1fe6322442d39a8b6fa57a0a7a.zip |
Add index for user follower address.
-rw-r--r-- | priv/repo/migrations/20180325172351_add_follower_address_index_to_users.exs | 8 |
1 files changed, 8 insertions, 0 deletions
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 |