summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180606173637_create_apid_host_extraction_index.exs
blob: 07b3f28758962f733db3c1b1d21be888865bd9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Pleroma.Repo.Migrations.CreateApidHostExtractionIndex do
  use Ecto.Migration
  @disable_ddl_transaction true

  def change do
    create(
      index(:activities, ["(split_part(actor, '/', 3))"],
        concurrently: true,
        name: :activities_hosts
      )
    )
  end
end