mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 17:04:52 +09:00
Rename ticketDesc to ticketSource
This commit is contained in:
parent
5111cd9bc7
commit
17fe163c09
3 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
{- This file is part of Vervis.
|
||||
-
|
||||
- Written in 2016 by fr33domlover <fr33domlover@riseup.net>.
|
||||
- Written in 2016, 2019 by fr33domlover <fr33domlover@riseup.net>.
|
||||
-
|
||||
- ♡ Copying is an act of love. Please copy, reuse and share.
|
||||
-
|
||||
|
@ -129,7 +129,7 @@ editTicketContentAForm ticket = Ticket
|
|||
aopt
|
||||
textareaField
|
||||
"Description (Markdown)"
|
||||
(Just $ Just $ Textarea $ ticketDesc ticket)
|
||||
(Just $ Just $ Textarea $ ticketSource ticket)
|
||||
)
|
||||
<*> pure (ticketAssignee ticket)
|
||||
<*> pure (ticketStatus ticket)
|
||||
|
|
|
@ -153,7 +153,7 @@ postTicketsR shar proj = do
|
|||
, ticketCreated = now
|
||||
, ticketCreator = author
|
||||
, ticketTitle = ntTitle nt
|
||||
, ticketDesc = ntDesc nt
|
||||
, ticketSource = ntDesc nt
|
||||
, ticketAssignee = Nothing
|
||||
, ticketStatus = TSNew
|
||||
, ticketClosed = UTCTime (ModifiedJulianDay 0) 0
|
||||
|
@ -253,7 +253,7 @@ getTicketR shar proj num = do
|
|||
, deps, rdeps
|
||||
)
|
||||
encodeHid <- getEncodeKeyHashid
|
||||
let desc = renderSourceT Markdown $ T.filter (/= '\r') $ ticketDesc ticket
|
||||
let desc = renderSourceT Markdown $ T.filter (/= '\r') $ ticketSource ticket
|
||||
discuss =
|
||||
discussionW
|
||||
(return $ ticketDiscuss ticket)
|
||||
|
|
|
@ -511,6 +511,8 @@ changes hLocal ctx =
|
|||
[ Message201906Source =. source
|
||||
, Message201906Content =. content
|
||||
]
|
||||
-- 88
|
||||
, renameField "Ticket" "desc" "source"
|
||||
]
|
||||
|
||||
migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int))
|
||||
|
|
Loading…
Reference in a new issue