salix/db/routines/vn/triggers/buy_afterInsert.sql

13 lines
257 B
MySQL
Raw Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`buy_afterInsert`
AFTER INSERT ON `buy`
FOR EACH ROW
trig: BEGIN
IF @isModeInventory OR @isTriggerDisabled THEN
LEAVE trig;
END IF;
CALL buy_afterUpsert(NEW.id);
END$$
DELIMITER ;