9 lines
206 B
MySQL
9 lines
206 B
MySQL
|
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 ;
|