Putting 4.2.0 on top of 4.0.17
[usit-rt.git] / etc / upgrade / 4.1.7 / schema.Oracle
1 UPDATE Transactions
2 SET TimeTaken
3     = COALESCE(TO_NUMBER(REGEXP_SUBSTR(NewValue, '^-?\d+$')), 0)
4     - COALESCE(TO_NUMBER(OldValue),0)
5 WHERE ObjectType = 'RT::Ticket' AND Type = 'Set' AND Field = 'TimeWorked';