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

9 lines
199 B
SQL

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