Add index on subscribers

This commit is contained in:
Sadposter 2019-04-05 17:30:54 +01:00
parent a270e7a191
commit ffac2593ea
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
defmodule Pleroma.Repo.Migrations.AddIndexOnSubscribers do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create index(:users, ["(info->'subscribers')"], name: :users_subscribers_index, using: :gin, concurrently: true)
end
end