salix/db/routines/pbx/triggers/queue_beforeUpdate.sql

9 lines
190 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`queue_beforeUpdate`
BEFORE UPDATE ON `queue`
FOR EACH ROW
BEGIN
CALL queue_isValid(NEW.`name`);
END$$
DELIMITER ;