Permit the index creation to run concurrently

This commit is contained in:
Mark Felder 2023-12-08 15:47:18 -05:00
parent 5f74aadaaf
commit 003d3312fd
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1 @@

View File

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