Merge branch 'migration-fix' into 'develop'

Permit the quoteUrl index creation to run concurrently

See merge request pleroma/pleroma!3988
This commit is contained in:
lain 2023-12-09 06:07:28 +00:00
commit 0e75315368
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1 @@

View File

@ -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