Fix master-only regression
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Feb 2023 23:55:05 +0000 (12:55 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Feb 2023 23:55:05 +0000 (12:55 +1300)
I merged https://github.com/civicrm/civicrm-core/pull/25471 yesterday,
well after 5.60 branch forked, into master. However, it
includes upgrade script targetting 5.59 - which means that
for anyone already on 5.59 it doesn't run. This moves
it to the correct branch (5.60 aka master)

CRM/Upgrade/Incremental/php/FiveFiftyNine.php
CRM/Upgrade/Incremental/php/FiveSixty.php

index bc2c7bb7097b13ae2838fb30325b309eceac60e4..b51a50c6af4d172a67a30b28a1714cfe76dfaba0 100644 (file)
@@ -39,7 +39,6 @@ class CRM_Upgrade_Incremental_php_FiveFiftyNine extends CRM_Upgrade_Incremental_
   public function upgrade_5_59_alpha1(string $rev): void {
     $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
     $this->addTask('Drop column civicrm_custom_field.mask', 'dropColumn', 'civicrm_custom_field', 'mask');
-    $this->addTask('Add column civicrm_custom_field.fk_entity', 'addColumn', 'civicrm_custom_field', 'fk_entity', "varchar(255) DEFAULT NULL COMMENT 'Name of entity being referenced.'");
   }
 
 }
index e9a690896cd8e2e4118f11139b3338188a906233..70afe8046f538b4da1fc498b3e76b685f794f1aa 100644 (file)
@@ -30,6 +30,8 @@ class CRM_Upgrade_Incremental_php_FiveSixty extends CRM_Upgrade_Incremental_Base
   public function upgrade_5_60_alpha1($rev): void {
     $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
     $this->addTask('Add scheduled_reminder_smarty setting', 'addScheduledReminderSmartySetting');
+    $this->addTask('Add column civicrm_custom_field.fk_entity', 'addColumn', 'civicrm_custom_field', 'fk_entity', "varchar(255) DEFAULT NULL COMMENT 'Name of entity being referenced.'");
+
   }
 
   public function setPostUpgradeMessage(&$postUpgradeMessage, $rev): void {