13 lines
259 B
MySQL
13 lines
259 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`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 ;
|