17 lines
499 B
SQL
17 lines
499 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_afterUpdate`
|
|
AFTER UPDATE ON `order`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
IF !(OLD.address_id <=> NEW.address_id) AND NEW.address_id = 2850 THEN
|
|
-- Fallo que se actualiza no se sabe como tickets en este cliente
|
|
CALL vn.mail_insert(
|
|
'jgallego@verdnatura.es',
|
|
'noreply@verdnatura.es',
|
|
'Actualizada order al address 2850',
|
|
CONCAT(account.myUser_getName(), ' ha creado la order ',NEW.id)
|
|
);
|
|
END IF;
|
|
END$$
|
|
DELIMITER ;
|