summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/migration-fix.skip1
-rw-r--r--priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs7
2 files changed, 7 insertions, 1 deletions
diff --git a/changelog.d/migration-fix.skip b/changelog.d/migration-fix.skip
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/changelog.d/migration-fix.skip
@@ -0,0 +1 @@
+
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