mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 13:58:41 +00:00
Permit the index creation to run concurrently
This commit is contained in:
parent
5f74aadaaf
commit
003d3312fd
2 changed files with 7 additions and 1 deletions
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 a new issue