From aa74c87443230921aadf6022b13eb9e44a031d95 Mon Sep 17 00:00:00 2001 From: mkljczk Date: Mon, 30 Dec 2024 22:41:53 +0100 Subject: [PATCH] fix tests Signed-off-by: mkljczk --- .../repo/migrations/20221203232118_add_user_follows_hashtag.exs | 2 ++ test/mix/tasks/pleroma/database_test.exs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs b/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs index 27fff2586..2b5ae91be 100644 --- a/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs +++ b/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs @@ -8,5 +8,7 @@ defmodule Pleroma.Repo.Migrations.AddUserFollowsHashtag do end create(unique_index(:user_follows_hashtag, [:user_id, :hashtag_id])) + + create_if_not_exists(index(:user_follows_hashtag, [:hashtag_id])) end end diff --git a/test/mix/tasks/pleroma/database_test.exs b/test/mix/tasks/pleroma/database_test.exs index 96a925528..38ed096ae 100644 --- a/test/mix/tasks/pleroma/database_test.exs +++ b/test/mix/tasks/pleroma/database_test.exs @@ -411,7 +411,7 @@ defmodule Mix.Tasks.Pleroma.DatabaseTest do ["scheduled_activities"], ["schema_migrations"], ["thread_mutes"], - # ["user_follows_hashtag"], # not in pleroma + ["user_follows_hashtag"], # ["user_frontend_setting_profiles"], # not in pleroma ["user_invite_tokens"], ["user_notes"],