Skip to content
Snippets Groups Projects
Commit 01ee7a71 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Set `lastupdate` for tickets w/o SLA on upgrade

parent 628a7896
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ ALTER TABLE `%TABLE_PREFIX%ticket`
ADD `lastupdate` datetime default NULL AFTER `lastresponse`;
UPDATE `%TABLE_PREFIX%ticket` A1
JOIN `%TABLE_PREFIX%sla` A2 ON (A1.sla_id = A2.id)
LEFT JOIN `%TABLE_PREFIX%sla` A2 ON (A1.sla_id = A2.id)
SET A1.`est_duedate` =
COALESCE(A1.`duedate`, A1.`created` + INTERVAL A2.`grace_period` HOUR),
A1.`lastupdate` =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment