Commit 4ccc3cdd authored by totten's avatar totten

CRM-20958 - TimestampTriggers - Update docblock

parent 32c1003d
......@@ -141,18 +141,15 @@ class TimestampTriggers {
* See hook_civicrm_triggerInfo.
*/
public function alterTriggerInfo(&$info, $tableFilter = NULL) {
//during upgrade, first check for valid version and then create triggers
//i.e the columns created_date and modified_date are introduced in 4.3.alpha1 so dont create triggers for older version
// If we haven't upgraded yet, then the created_date/modified_date may not exist.
// In the past, this was a version-based check, but checkFieldExists()
// seems more robust.
if (\CRM_Core_Config::isUpgradeMode()) {
if (!\CRM_Core_DAO::checkFieldExists($this->getTableName(),
$this->getCreatedDate())
) {
return;
}
// $currentVer = CRM_Core_BAO_Domain::version(TRUE);
// if (version_compare($currentVer, '4.3.alpha1') < 0) {
// return;
// }
}
if ($tableFilter == NULL || $tableFilter == $this->getTableName()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment