Unset ticket closer PersonId for tickets that aren't closed

This commit is contained in:
fr33domlover 2019-06-27 12:19:37 +00:00
parent 63689aef1a
commit e5f9b34ad2

View file

@ -940,6 +940,12 @@ changes hLocal ctx =
"OutboxItem" "OutboxItem"
-- 125 -- 125
, addUnique "Ticket" $ Unique "UniqueTicketAccept" ["accept"] , addUnique "Ticket" $ Unique "UniqueTicketAccept" ["accept"]
-- 126
, unchecked $ lift $ do
tids <- selectKeysList [Ticket20190624Status !=. "TSClosed"] []
updateWhere
[Ticket20190624Id <-. tids]
[Ticket20190624Closer =. Nothing]
] ]
migrateDB migrateDB