Permit the index creation to run concurrently
This commit is contained in:
parent
5f74aadaaf
commit
003d3312fd
1
changelog.d/migration-fix.skip
Normal file
1
changelog.d/migration-fix.skip
Normal file
@ -0,0 +1 @@
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user