From ff2cd95e6e916bbce303fbdee93fa4727dc11355 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 19 May 2022 22:21:05 -0700 Subject: [PATCH] CRM/Upgrade - Enable snapshots for 5.50.alpha1 Note: This is being committed during 5.50.beta1. If anyone previously executed the upgrade for the RC/beta/alpha, then may not get snapshots. But those upgrades are already done; and they're not guaranteed anyway; and the snapshots aren't mandatory anyway. --- CRM/Upgrade/Incremental/php/FiveFifty.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveFifty.php b/CRM/Upgrade/Incremental/php/FiveFifty.php index 00fbbbdde5..f140e01ab6 100644 --- a/CRM/Upgrade/Incremental/php/FiveFifty.php +++ b/CRM/Upgrade/Incremental/php/FiveFifty.php @@ -28,6 +28,8 @@ class CRM_Upgrade_Incremental_php_FiveFifty extends CRM_Upgrade_Incremental_Base * The version number matching this function name */ public function upgrade_5_50_alpha1($rev): void { + $this->addSnapshotTask('mappings', CRM_Utils_SQL_Select::from('civicrm_mapping')); + $this->addSnapshotTask('fields', CRM_Utils_SQL_Select::from('civicrm_mapping_field')); $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev); $this->addTask(ts('Convert import mappings to use names'), 'convertMappingFieldLabelsToNames', $rev); -- 2.25.1