diff options
author | lain <lain@soykaf.club> | 2025-03-01 16:41:38 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2025-03-01 16:41:38 +0000 |
commit | af6d5470d29f294e9b356da36cccbcaf85379f78 (patch) | |
tree | 81eb0ba210f674eb0f6f41cde9b692a27ea96ca0 /priv | |
parent | fe3e61f6ece0335627f675e04a93917e6c613c6c (diff) | |
parent | cd5f018206c991628ff1530095bb71cf941e7a8b (diff) | |
download | pleroma-af6d5470d29f294e9b356da36cccbcaf85379f78.tar.gz pleroma-af6d5470d29f294e9b356da36cccbcaf85379f78.zip |
Merge branch 'release/2.9.0' into 'stable'
Release/2.9.0
See merge request pleroma/pleroma!4331
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs | 14 |
1 files changed, 14 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..2b5ae91be --- /dev/null +++ b/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs @@ -0,0 +1,14 @@ +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])) + + create_if_not_exists(index(:user_follows_hashtag, [:hashtag_id])) + end +end |