From e5f9b34ad21064491c855d3915dcc41a73880957 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Thu, 27 Jun 2019 12:19:37 +0000 Subject: [PATCH] Unset ticket closer PersonId for tickets that aren't closed --- src/Vervis/Migration.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Vervis/Migration.hs b/src/Vervis/Migration.hs index f87594a..b01c4cd 100644 --- a/src/Vervis/Migration.hs +++ b/src/Vervis/Migration.hs @@ -940,6 +940,12 @@ changes hLocal ctx = "OutboxItem" -- 125 , addUnique "Ticket" $ Unique "UniqueTicketAccept" ["accept"] + -- 126 + , unchecked $ lift $ do + tids <- selectKeysList [Ticket20190624Status !=. "TSClosed"] [] + updateWhere + [Ticket20190624Id <-. tids] + [Ticket20190624Closer =. Nothing] ] migrateDB