From 04735db193978f05d2731878896fa70172f2fb11 Mon Sep 17 00:00:00 2001 From: lain Date: Wed, 9 Jan 2019 16:55:05 +0100 Subject: [PATCH] Build the index concurrently. --- .../migrations/20190109152453_add_visibility_function.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2