USE parts;

DROP TRIGGER IF EXISTS parts.before_insert_DOG_Dog_Change_Set;

DELIMITER //
CREATE TRIGGER parts.before_insert_DOG_Dog_Change_Set
BEFORE INSERT ON parts.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 ;
