SET TERM ^ ;

CREATE trigger ttbminuta_coleta_b02d for tbminuta_coleta
active before delete position 0
AS
begin
    IF( OLD.ID > 0 ) THEN
    BEGIN
        DELETE FROM TBMINUTA_COLETA_ITEM WHERE MINUTA_COLETA_ID = OLD.ID;
    END
end
^

SET TERM ; ^

