Skip to content
Snippets Groups Projects
Commit b824c1be authored by Flávio Veloso's avatar Flávio Veloso
Browse files

Add upgrade function for the Case Activity trigger

Add the trigger when upgrading the extension.
parent 2187a6f7
No related branches found
No related tags found
No related merge requests found
......@@ -155,4 +155,15 @@ class CRM_Civirules_Upgrader extends CRM_Civirules_Upgrader_Base {
);
return true;
}
}
\ No newline at end of file
/**
* Update to insert the trigger for Case Activity changed
*/
public function upgrade_1010() {
CRM_Core_DAO::executeQuery("
INSERT INTO civirule_trigger (name, label, object_name, op, class_name, created_date, created_user_id)
VALUES ('changed_case_activity', 'Case activity is changed', 'Activity', 'edit', 'CRM_CivirulesPostTrigger_CaseActivity', CURDATE(), 1);"
);
return TRUE;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment