logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 0e7531536847a2756ef30311a534ac1d5eead078
parent 5f74aadaaf6f8cbd31ce251a03729c8d5276409a
Author: lain <lain@soykaf.club>
Date:   Sat,  9 Dec 2023 06:07:28 +0000

Merge branch 'migration-fix' into 'develop'

Permit the quoteUrl index creation to run concurrently

See merge request pleroma/pleroma!3988

Diffstat:

Achangelog.d/migration-fix.skip1+
Mpriv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs8+++++++-
2 files changed, 8 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 @@ -4,8 +4,14 @@ defmodule Pleroma.Repo.Migrations.AddQuoteUrlIndexToObjects do use Ecto.Migration + @disable_ddl_transaction true 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