DELIMITER $$

DROP TRIGGER IF EXISTS `watch_insert_training_online_course_trail`;$$
CREATE TRIGGER watch_insert_training_online_course_trail
    AFTER INSERT ON ohrm_audittrail_training_online_course_trail
    FOR EACH ROW BEGIN
    CALL audit_insert_to_ohrm_audittrail_online_training(
        NEW.action_time,
        NEW.action_owner_id,
        NEW.action_owner_name,
        NEW.action,
        NEW.action_description,
        NEW.version_id,
        NEW.affected_entity_id,
        NEW.affected_entity_name
        );
END;$$

DELIMITER ;
