From 6bb585d0e2a0182371c4d85ee7e1ee5a4cf59b3e Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Mon, 11 Jun 2018 17:01:49 +0530 Subject: [PATCH] Move upgrade function to 5.4 --- CRM/Upgrade/Incremental/php/FiveFour.php | 11 +++++++++++ CRM/Upgrade/Incremental/php/FiveOne.php | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FiveFour.php b/CRM/Upgrade/Incremental/php/FiveFour.php index ff1878b5a4..8ea5630a40 100644 --- a/CRM/Upgrade/Incremental/php/FiveFour.php +++ b/CRM/Upgrade/Incremental/php/FiveFour.php @@ -62,6 +62,17 @@ class CRM_Upgrade_Incremental_php_FiveFour extends CRM_Upgrade_Incremental_Base // } } + /** + * Upgrade function. + * + * @param string $rev + */ + public function upgrade_5_4_alpha1($rev) { + $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev); + $this->addTask('Add Cancel Button Setting to the Profile', 'addColumn', + 'civicrm_uf_group', 'add_cancel_button', "tinyint DEFAULT '1' COMMENT 'Should a Cancel button be included in this Profile form.'"); + } + /* * Important! All upgrade functions MUST add a 'runSql' task. * Uncomment and use the following template for a new upgrade version diff --git a/CRM/Upgrade/Incremental/php/FiveOne.php b/CRM/Upgrade/Incremental/php/FiveOne.php index de6ba85d7f..d97a2b6233 100644 --- a/CRM/Upgrade/Incremental/php/FiveOne.php +++ b/CRM/Upgrade/Incremental/php/FiveOne.php @@ -61,17 +61,6 @@ class CRM_Upgrade_Incremental_php_FiveOne extends CRM_Upgrade_Incremental_Base { // } } - /** - * Upgrade function. - * - * @param string $rev - */ - public function upgrade_5_1_alpha1($rev) { - $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev); - $this->addTask('Add Cancel Button Setting to the Profile', 'addColumn', - 'civicrm_uf_group', 'add_cancel_button', "tinyint DEFAULT '1' COMMENT 'Should a Cancel button be included in this Profile form.'"); - } - /* * Important! All upgrade functions MUST add a 'runSql' task. * Uncomment and use the following template for a new upgrade version -- 2.25.1