summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorfloatingghost <hannah@coffee-and-dreams.uk>2022-12-05 12:58:48 +0000
committermkljczk <git@mkljczk.pl>2024-12-30 17:56:18 +0100
commitc94c6eac22663a46d8c2822953e3b8b959a3d1fb (patch)
treef9ef24460148690cc43d72346f543c64949d0066 /priv
parent138ead9856512506cc030ed429ffd05d4d03d14d (diff)
downloadpleroma-c94c6eac22663a46d8c2822953e3b8b959a3d1fb.tar.gz
pleroma-c94c6eac22663a46d8c2822953e3b8b959a3d1fb.zip
Remerge of hashtag following (#341)
this time with less idiot Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/341 Signed-off-by: mkljczk <git@mkljczk.pl>
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs12
1 files changed, 12 insertions, 0 deletions
diff --git a/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs b/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs
new file mode 100644
index 000000000..27fff2586
--- /dev/null
+++ b/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs
@@ -0,0 +1,12 @@
+defmodule Pleroma.Repo.Migrations.AddUserFollowsHashtag do
+ use Ecto.Migration
+
+ def change do
+ create table(:user_follows_hashtag) do
+ add(:hashtag_id, references(:hashtags))
+ add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
+ end
+
+ create(unique_index(:user_follows_hashtag, [:user_id, :hashtag_id]))
+ end
+end