fix trigger itemTag
This commit is contained in:
parent
eecbdec7ad
commit
8b3af8851c
|
@ -0,0 +1,19 @@
|
||||||
|
DROP TRIGGER IF EXISTS `vn`.`itemTag_afterUpdate`;
|
||||||
|
|
||||||
|
DELIMITER $$
|
||||||
|
USE `vn`$$
|
||||||
|
CREATE DEFINER=`root`@`%` TRIGGER `vn`.`itemTag_afterUpdate`
|
||||||
|
AFTER UPDATE ON `itemTag` FOR EACH ROW
|
||||||
|
trig: BEGIN
|
||||||
|
IF @isTriggerDisabled THEN
|
||||||
|
LEAVE trig;
|
||||||
|
END IF;
|
||||||
|
|
||||||
|
DROP TEMPORARY TABLE IF EXISTS tmp.item;
|
||||||
|
CREATE TEMPORARY TABLE tmp.item
|
||||||
|
SELECT vItem id;
|
||||||
|
|
||||||
|
CALL item_refreshTags();
|
||||||
|
DROP TEMPORARY TABLE tmp.item;
|
||||||
|
END$$
|
||||||
|
DELIMITER ;
|
Loading…
Reference in New Issue