summaryrefslogtreecommitdiff
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
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
-rw-r--r--changelog.d/migration-fix.skip1
-rw-r--r--priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs8
2 files changed, 8 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..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