summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2023-12-09 06:07:28 +0000
committerlain <lain@soykaf.club>2023-12-09 06:07:28 +0000
commit0e7531536847a2756ef30311a534ac1d5eead078 (patch)
tree4beea5f954a4922c99995ffca056e40a08982629 /priv
parent5f74aadaaf6f8cbd31ce251a03729c8d5276409a (diff)
parentee15939d33adee28007a71f02172dcc5fc1f20c5 (diff)
downloadpleroma-0e7531536847a2756ef30311a534ac1d5eead078.tar.gz
pleroma-0e7531536847a2756ef30311a534ac1d5eead078.zip
Merge branch 'migration-fix' into 'develop'
Permit the quoteUrl index creation to run concurrently See merge request pleroma/pleroma!3988
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs8
1 files changed, 7 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..d77db34cd 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
@@ -4,8 +4,14 @@
defmodule Pleroma.Repo.Migrations.AddQuoteUrlIndexToObjects do
use Ecto.Migration
+ @disable_ddl_transaction true
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