* @param string $rev
*/
public function upgrade_4_7_beta5($rev) {
+ $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask('Disable flexible jobs extension', 'disableFlexibleJobsExtension');
}
* @return bool
*/
public function disableFlexibleJobsExtension(CRM_Queue_TaskContext $ctx) {
- CRM_Core_DAO::setFieldValue('CRM_Core_DAO_Job', 'Flexible Jobs', 'is_active', 0, 'name');
+ civicrm_api3('Extension', 'disable', array('key' => 'com.klangsoft.flexiblejobs'));
return TRUE;
}