media_before_delete.sql 221 B

1234567
  1. drop trigger if exists media_before_delete;
  2. DELIMITER //
  3. create trigger media_before_delete after delete on dbr_media
  4. for each row begin
  5. delete from dbr_media_bd where media_id = old.id;
  6. END//
  7. DELIMITER ;