From ecf2c06e35d839b89f46d61099df34d1932e4f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 7 Sep 2024 19:12:09 +0200 Subject: [PATCH] Akkoma rollbacks: Remove migrations used by pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../20221203232118_add_user_follows_hashtag.exs | 17 ----------------- .../20240213120000_add_permit_followback.exs | 12 ------------ 2 files changed, 29 deletions(-) delete mode 100644 priv/repo/optional_migrations/akkoma_rollbacks/20221203232118_add_user_follows_hashtag.exs delete mode 100644 priv/repo/optional_migrations/akkoma_rollbacks/20240213120000_add_permit_followback.exs diff --git a/priv/repo/optional_migrations/akkoma_rollbacks/20221203232118_add_user_follows_hashtag.exs b/priv/repo/optional_migrations/akkoma_rollbacks/20221203232118_add_user_follows_hashtag.exs deleted file mode 100644 index ed8c1a0bc5..0000000000 --- a/priv/repo/optional_migrations/akkoma_rollbacks/20221203232118_add_user_follows_hashtag.exs +++ /dev/null @@ -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 diff --git a/priv/repo/optional_migrations/akkoma_rollbacks/20240213120000_add_permit_followback.exs b/priv/repo/optional_migrations/akkoma_rollbacks/20240213120000_add_permit_followback.exs deleted file mode 100644 index 9b3834a4ab..0000000000 --- a/priv/repo/optional_migrations/akkoma_rollbacks/20240213120000_add_permit_followback.exs +++ /dev/null @@ -1,12 +0,0 @@ -# Adapted from Akkoma -# https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/repo/migrations/20240213120000_add_permit_followback.exs - -defmodule Pleroma.Repo.Migrations.AddPermitFollowback do - use Ecto.Migration - - def change do - alter table(:users) do - add(:permit_followback, :boolean, null: false, default: false) - end - end -end