DROP TRIGGER IF EXISTS `vn`.`ticketLog_BEFORE_INSERT`;

DELIMITER $$
USE `vn`$$
CREATE DEFINER=`root`@`%` TRIGGER `vn`.`ticketLog_BEFORE_INSERT` BEFORE INSERT ON `ticketLog` FOR EACH ROW
BEGIN
	IF NEW.newInstance is NULL THEN
		SET NEW.newInstance = NEW.description;
	END IF;
END$$
DELIMITER ;
