From: rinpatch Date: Sun, 29 Sep 2019 20:52:40 +0000 (+0300) Subject: Remove subscription_notifications table if it existed X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=81b4243173f31fd47eb598fb7ed95cadadf90c2f;p=akkoma Remove subscription_notifications table if it existed Followup to !1741 --- diff --git a/priv/repo/migrations/20190929201536_drop_subscription_if_exists.exs b/priv/repo/migrations/20190929201536_drop_subscription_if_exists.exs new file mode 100644 index 000000000..bbf70f78b --- /dev/null +++ b/priv/repo/migrations/20190929201536_drop_subscription_if_exists.exs @@ -0,0 +1,16 @@ +defmodule Pleroma.Repo.Migrations.DropSubscriptionIfExists do + use Ecto.Migration + + def change do + + end + + def up do + drop_if_exists(index(:subscription_notifications, [:user_id])) + drop_if_exists(index(:subscription_notifications, ["id desc nulls last"])) + drop_if_exists(table(:subscription_notifications)) + end + def down do + :ok + end +end