9 lines
199 B
MySQL
9 lines
199 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`queuePhone_beforeInsert`
|
||
|
BEFORE INSERT ON `queuePhone`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
CALL phone_isValid(NEW.phone);
|
||
|
END$$
|
||
|
DELIMITER ;
|