diff options
author | Mark Felder <feld@feld.me> | 2023-12-08 15:47:18 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-12-08 15:48:00 -0500 |
commit | 003d3312fd3fe7759f4704b0a381fdd224357076 (patch) | |
tree | a3d5041512d6df2e52b21f72e81e5df1d70f27d8 /priv/repo | |
parent | 5f74aadaaf6f8cbd31ce251a03729c8d5276409a (diff) | |
download | pleroma-003d3312fd3fe7759f4704b0a381fdd224357076.tar.gz pleroma-003d3312fd3fe7759f4704b0a381fdd224357076.zip |
Permit the index creation to run concurrently
Diffstat (limited to 'priv/repo')
-rw-r--r-- | priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs b/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs index c746f12a1..01b14bda8 100644 --- a/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs +++ b/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs @@ -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 |