fix migration
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
b3700afdd3
commit
c4dea542cc
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue