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

9 lines
198 B
MySQL
Raw Permalink Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`blacklist_berforeUpdate`
BEFORE UPDATE ON `blacklist`
FOR EACH ROW
BEGIN
CALL phone_isValid(NEW.phone);
END$$
DELIMITER ;