summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authormarcin mikołajczak <me@mkljczk.pl>2023-11-12 13:38:08 +0000
committerlain <lain@soykaf.club>2023-11-12 13:38:08 +0000
commit9a063deacc75d3545dcd7a7eb33263ecbf0361ae (patch)
tree9c7815f25d27cfbb57bf8f58e25bab421e6c5a8c /priv
parent4c5b45ed73e93e6e8bcfeb527b9b398ec64c0caf (diff)
Count and display post quotes
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