Add changelog entry for hashtag following
[akkoma] / priv / repo / migrations / 20190929201536_drop_subscription_if_exists.exs
1 defmodule Pleroma.Repo.Migrations.DropSubscriptionIfExists do
2 use Ecto.Migration
3
4 def change do
5 end
6
7 def up do
8 drop_if_exists(index(:subscription_notifications, [:user_id]))
9 drop_if_exists(index(:subscription_notifications, ["id desc nulls last"]))
10 drop_if_exists(table(:subscription_notifications))
11 end
12
13 def down do
14 :ok
15 end
16 end