CRM-15602 Fix for logging- only regenerate timestamp triggers on requested tables

(This is a resubmission of #4590 from @futurefirst targetting 4.5 instead of master.)