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

9 lines
229 B
MySQL
Raw Permalink Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`workerIncome_afterInsert`
AFTER INSERT ON `workerIncome`
FOR EACH ROW
BEGIN
CALL worker_updateBalance(NEW.workerFk,NEW.credit,NEW.debit);
END$$
DELIMITER ;