diff options
author | lain <lain@soykaf.club> | 2023-11-12 13:38:09 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2023-11-12 13:38:09 +0000 |
commit | 752bc168f6877e6a3ce2e2e508ec50069e9c1f61 (patch) | |
tree | d070d70255cf70aabd68ac4def1029f13393d7a5 /priv/repo | |
parent | 5f19fbc5a99847e56235e128d36b49bbe76c454d (diff) | |
parent | 9a063deacc75d3545dcd7a7eb33263ecbf0361ae (diff) | |
download | pleroma-752bc168f6877e6a3ce2e2e508ec50069e9c1f61.tar.gz pleroma-752bc168f6877e6a3ce2e2e508ec50069e9c1f61.zip |
Merge branch 'quotes-count' into 'develop'
Count and display post quotes
See merge request pleroma/pleroma!3956
Diffstat (limited to 'priv/repo')
-rw-r--r-- | priv/repo/migrations/20220527134341_add_quote_url_index_to_objects.exs | 11 |
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 |