2024-06-12 05:33:10 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`claimRatio_afterUpdate`
|
2024-06-12 05:33:10 +00:00
|
|
|
AFTER UPDATE ON `claimRatio`
|
|
|
|
FOR EACH ROW
|
|
|
|
BEGIN
|
|
|
|
INSERT INTO clientRate(clientFk, `value`)
|
|
|
|
VALUES(NEW.clientFk, NEW.priceIncreasing)
|
|
|
|
ON DUPLICATE KEY UPDATE
|
|
|
|
`value` = VALUES(`value`);
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|