From: lain Date: Wed, 9 Jan 2019 15:55:05 +0000 (+0100) Subject: Build the index concurrently. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=04735db193978f05d2731878896fa70172f2fb11;p=akkoma Build the index concurrently. --- diff --git a/priv/repo/migrations/20190109152453_add_visibility_function.exs b/priv/repo/migrations/20190109152453_add_visibility_function.exs index 6c94f1bb3..3aadabcd7 100644 --- a/priv/repo/migrations/20190109152453_add_visibility_function.exs +++ b/priv/repo/migrations/20190109152453_add_visibility_function.exs @@ -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 @@ defmodule Pleroma.Repo.Migrations.AddVisibilityFunction do create( index(:activities, ["activity_visibility(actor, recipients, data)"], - name: :activities_visibility_index + name: :activities_visibility_index, + concurrently: true ) ) end