summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2023-11-12 13:38:09 +0000
committerlain <lain@soykaf.club>2023-11-12 13:38:09 +0000
commit752bc168f6877e6a3ce2e2e508ec50069e9c1f61 (patch)
treed070d70255cf70aabd68ac4def1029f13393d7a5 /priv
parent5f19fbc5a99847e56235e128d36b49bbe76c454d (diff)
parent9a063deacc75d3545dcd7a7eb33263ecbf0361ae (diff)
Merge branch 'quotes-count' into 'develop'
Count and display post quotes See merge request pleroma/pleroma!3956
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs11
1 files changed, 11 insertions, 0 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
new file mode 100644
index 000000000..c746f12a1
--- /dev/null
+++ b/priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs
@@ -0,0 +1,11 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.Repo.Migrations.AddQuoteUrlIndexToObjects do
+ use Ecto.Migration
+
+ def change do
+ create_if_not_exists(index(:objects, ["(data->'quoteUrl')"], name: :objects_quote_url))
+ end
+end