mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2026-02-15 17:16:57 +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
|
|
@ -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…
Add table
Add a link
Reference in a new issue