diff --git a/priv/repo/migrations/20220819171321_add_pleroma_participation_accepted_to_notifications_enum.exs b/priv/repo/migrations/20220819171321_add_pleroma_participation_accepted_to_notifications_enum.exs index b3242e82cb..2a2f271307 100644 --- a/priv/repo/migrations/20220819171321_add_pleroma_participation_accepted_to_notifications_enum.exs +++ b/priv/repo/migrations/20220819171321_add_pleroma_participation_accepted_to_notifications_enum.exs @@ -6,6 +6,10 @@ defmodule Pleroma.Repo.Migrations.AddPleromaParticipationAcceptedToNotifications def up do """ alter type notification_type add value 'pleroma:participation_accepted' + """ + |> execute() + + """ alter type notification_type add value 'pleroma:participation_request' """ |> execute() @@ -17,8 +21,7 @@ def down do end """ - delete from notifications where type = 'pleroma:participation_accepted' - delete from notifications where type = 'pleroma:participation_request' + delete from notifications where type in ('pleroma:participation_accepted', 'pleroma:participation_request') """ |> execute()