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

9 lines
235 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` TRIGGER `vn`.`workerIncome_afterInsert`
AFTER INSERT ON `workerIncome`
FOR EACH ROW
BEGIN
CALL worker_updateBalance(NEW.workerFk,NEW.credit,NEW.debit);
END$$
DELIMITER ;