From 003d3312fd3fe7759f4704b0a381fdd224357076 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 8 Dec 2023 15:47:18 -0500 Subject: Permit the index creation to run concurrently --- .../migrations/20220527134341_add_quote_url_index_to_objects.exs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'priv') diff --git a/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs b/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs index c746f12a1..01b14bda8 100644 --- a/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs +++ b/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs @@ -6,6 +6,11 @@ defmodule Pleroma.Repo.Migrations.AddQuoteUrlIndexToObjects do use Ecto.Migration def change do - create_if_not_exists(index(:objects, ["(data->'quoteUrl')"], name: :objects_quote_url)) + create_if_not_exists( + index(:objects, ["(data->'quoteUrl')"], + name: :objects_quote_url, + concurrently: true + ) + ) end end -- cgit v1.2.3