USE fetchmetrics;

DROP TRIGGER IF EXISTS fetchmetrics.before_insert_DOG_Dog_Change_Set;

DELIMITER //
CREATE TRIGGER fetchmetrics.before_insert_DOG_Dog_Change_Set
BEFORE INSERT ON fetchmetrics.DOG_Dog_Change_Set
FOR EACH ROW
BEGIN
	IF NEW.updated_last_on <=> NULL THEN
		SET NEW.updated_last_on = NOW();
	END IF;
END //
DELIMITER ;
