salix/db/routines/hedera/triggers/order_beforeDelete.sql

9 lines
206 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_beforeDelete`
BEFORE DELETE ON `order`
FOR EACH ROW
BEGIN
DELETE FROM orderRow WHERE orderFk = OLD.id;
END$$
DELIMITER ;