Build the index concurrently.

This commit is contained in:
lain 2019-01-09 16:55:05 +01:00
parent 5027f82cde
commit 04735db193
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
defmodule Pleroma.Repo.Migrations.AddVisibilityFunction do
use Ecto.Migration
@disable_ddl_transaction true
def up do
definition = """
@ -29,7 +30,8 @@ def up do
create(
index(:activities, ["activity_visibility(actor, recipients, data)"],
name: :activities_visibility_index
name: :activities_visibility_index,
concurrently: true
)
)
end