From e079b0efb6c65a2a1b7cb96a19599563596e91d4 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 19 Sep 2018 20:25:57 -0700 Subject: [PATCH] (dev/core#107) Upgrader - Re-run addActivityDefaultAssigneeOptions() for 5.4/5.5 sites --- CRM/Upgrade/Incremental/php/FiveSix.php | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FiveSix.php b/CRM/Upgrade/Incremental/php/FiveSix.php index 94f0d4c134..c1718f0df8 100644 --- a/CRM/Upgrade/Incremental/php/FiveSix.php +++ b/CRM/Upgrade/Incremental/php/FiveSix.php @@ -67,21 +67,21 @@ class CRM_Upgrade_Incremental_php_FiveSix extends CRM_Upgrade_Incremental_Base { * (change the x in the function name): */ - // /** - // * Upgrade function. - // * - // * @param string $rev - // */ - // public function upgrade_5_0_x($rev) { - // $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev); - // $this->addTask('Do the foo change', 'taskFoo', ...); - // // Additional tasks here... - // // Note: do not use ts() in the addTask description because it adds unnecessary strings to transifex. - // // The above is an exception because 'Upgrade DB to %1: SQL' is generic & reusable. - // } + /** + * Upgrade function. + * + * @param string $rev + */ + public function upgrade_5_6_beta2($rev) { + $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev); + $this->addTask('dev/core#107 - Add Activity\'s default assignee options', 'addActivityDefaultAssigneeOptions'); + } - // public static function taskFoo(CRM_Queue_TaskContext $ctx, ...) { - // return TRUE; - // } + public static function addActivityDefaultAssigneeOptions() { + // This data was originally added via upgrader in 5.4.alpha1. However, it was omitted from the + // default data for new installations. Re-running the upgrader should fix sites initialized + // between 5.4.alpha1-5.6.beta1. + return CRM_Upgrade_Incremental_php_FiveFour::addActivityDefaultAssigneeOptions(); + } } -- 2.25.1