logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: bc51dea4257d4faaff70f8511dcd3702489ebb74
parent 5be9d139816fa40ff6227950b58f3c6cea01fc81
Author: feld <feld@feld.me>
Date:   Mon,  7 Jun 2021 20:02:28 +0000

Update lib/mix/tasks/pleroma/database.ex

Diffstat:

Mlib/mix/tasks/pleroma/database.ex8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/mix/tasks/pleroma/database.ex b/lib/mix/tasks/pleroma/database.ex @@ -97,10 +97,10 @@ defmodule Mix.Tasks.Pleroma.Database do |> Repo.delete_all(timeout: :infinity) prune_hashtags_query = """ - delete from hashtags as ht - where not exists ( - select 1 from hashtags_objects hto - where ht.id = hto.hashtag_id) + DELETE FROM hashtags AS ht + WHERE NOT EXISTS ( + SELECT 1 FROM hashtags_objects hto + WHERE ht.id = hto.hashtag_id) """ Repo.query(prune_hashtags_query)