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