From c4dea542ccc1c23b367fc13c213adff5b6dafe12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 21 Aug 2022 12:46:53 +0200 Subject: [PATCH] fix migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- ...leroma_participation_accepted_to_notifications_enum.exs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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()