<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
'logging/contribute/summary',
);
+ //CRM-13028 / NYSS-6933 - table => array (cols) - to be excluded from the update statement
+ private $exceptions = array(
+ 'civicrm_job' => array('last_run'),
+ 'civicrm_group' => array('cache_date'),
+ );
+
/**
* Populate $this->tables and $this->logs with current db state.
*/
// add report instances
$domain_id = CRM_Core_Config::domainID();
foreach ($this->reports as $report) {
- $dao = new CRM_Report_DAO_Instance;
+ $dao = new CRM_Report_DAO_ReportInstance;
$dao->domain_id = $domain_id;
$dao->report_id = $report;
$dao->title = $titles[$report];
// delete report instances
$domain_id = CRM_Core_Config::domainID();
foreach ($this->reports as $report) {
- $dao = new CRM_Report_DAO_Instance;
+ $dao = new CRM_Report_DAO_ReportInstance;
$dao->domain_id = $domain_id;
$dao->report_id = $report;
$dao->delete();
$cond = array( );
foreach ($columns as $column) {
// ignore modified_date changes
- if ($column != 'modified_date') {
+ if ($column != 'modified_date' && !in_array($column, CRM_Utils_Array::value($table, $this->exceptions, array()))) {
$cond[] = "IFNULL(OLD.$column,'') <> IFNULL(NEW.$column,'')";
}
}