modify workflowUpdateTimePS sql to compatible mysql