mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-13 06:24:09 +00:00
Remove hashtag following migration
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
parent
f7a73186a8
commit
c906404ac3
1 changed files with 0 additions and 17 deletions
|
@ -1,17 +0,0 @@
|
|||
# Adapted from Akkoma
|
||||
# https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/repo/migrations/20221203232118_add_user_follows_hashtag.exs
|
||||
|
||||
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
|
Loading…
Reference in a new issue