If CiviRules is not installed the upgrade fails in step 1003
De problem is in the following function in the upgrader class. It assumes the civirule_action
table.
public function upgrade_1003() {
CRM_Core_DAO::executeQuery("UPDATE civirule_action SET class_name = 'CRM_Emailapi_CivirulesAction_Send' WHERE `name` = 'emailapi_send'");
CRM_Core_DAO::executeQuery("INSERT INTO civirule_action (name, label, class_name, is_active)
VALUES('emailapi_send_relationship', 'Send E-mail to a related contact', 'CRM_Emailapi_CivirulesAction_SendToRelatedContact', 1);"
);
return true;
}