fix migration

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-08-21 12:46:53 +02:00
parent b3700afdd3
commit c4dea542cc

View file

@ -6,6 +6,10 @@ defmodule Pleroma.Repo.Migrations.AddPleromaParticipationAcceptedToNotifications
def up do def up do
""" """
alter type notification_type add value 'pleroma:participation_accepted' alter type notification_type add value 'pleroma:participation_accepted'
"""
|> execute()
"""
alter type notification_type add value 'pleroma:participation_request' alter type notification_type add value 'pleroma:participation_request'
""" """
|> execute() |> execute()
@ -17,8 +21,7 @@ def down do
end end
""" """
delete from notifications where type = 'pleroma:participation_accepted' delete from notifications where type in ('pleroma:participation_accepted', 'pleroma:participation_request')
delete from notifications where type = 'pleroma:participation_request'
""" """
|> execute() |> execute()