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