From ee1bbc4b9d582777d0c609250ad37f2e5b9655eb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 11 Jun 2020 17:38:04 -0400 Subject: [PATCH] Fix duplicate upgrade function --- CRM/Upgrade/Incremental/php/FiveTwentyEight.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FiveTwentyEight.php b/CRM/Upgrade/Incremental/php/FiveTwentyEight.php index fdba99c68e..bcc12a1adf 100644 --- a/CRM/Upgrade/Incremental/php/FiveTwentyEight.php +++ b/CRM/Upgrade/Incremental/php/FiveTwentyEight.php @@ -59,20 +59,11 @@ class CRM_Upgrade_Incremental_php_FiveTwentyEight extends CRM_Upgrade_Incrementa */ public function upgrade_5_28_alpha1($rev) { $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev); + $this->addTask('Populate missing Contact Type name fields', 'populateMissingContactTypeName'); $this->addTask('Add icon column to civicrm_custom_group', 'addColumn', 'civicrm_custom_group', 'icon', "varchar(255) COMMENT 'crm-i icon class' DEFAULT NULL"); } - /** - * Upgrade function. - * - * @param string $rev - */ - public function upgrade_5_28_alpha1($rev) { - $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev); - $this->addTask('Populate missing Contact Type name fields', 'populateMissingContactTypeName'); - } - public static function populateMissingContactTypeName() { $contactTypes = \Civi\Api4\ContactType::get() ->setCheckPermissions(FALSE) -- 2.25.1