private function upgrade_db_post_4571() { // remove the old truncate_log cronjob CronTab::delete_cronjob('truncate_log'); // add the new trim_log cronjob CronTab::add_daily_cron('trim_log', Method::create('\\Habari\\EventLog', 'trim'), _t('Trim the log table')); }