logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 003d3312fd3fe7759f4704b0a381fdd224357076
parent 5f74aadaaf6f8cbd31ce251a03729c8d5276409a
Author: Mark Felder <feld@feld.me>
Date:   Fri,  8 Dec 2023 15:47:18 -0500

Permit the index creation to run concurrently

Diffstat:

Achangelog.d/migration-fix.skip1+
Mpriv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs7++++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/changelog.d/migration-fix.skip b/changelog.d/migration-fix.skip @@ -0,0 +1 @@ + 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 @@ -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