Merge pull request #23386 from eileenmcnaughton/import_no_var
[civicrm-core.git] / CRM / Upgrade / Incremental / php / FiveFiftyOne.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 * Upgrade logic for the 5.51.x series.
14 *
15 * Each minor version in the series is handled by either a `5.51.x.mysql.tpl` file,
16 * or a function in this class named `upgrade_5_51_x`.
17 * If only a .tpl file exists for a version, it will be run automatically.
18 * If the function exists, it must explicitly add the 'runSql' task if there is a corresponding .mysql.tpl.
19 *
20 * This class may also implement `setPreUpgradeMessage()` and `setPostUpgradeMessage()` functions.
21 */
22 class CRM_Upgrade_Incremental_php_FiveFiftyOne extends CRM_Upgrade_Incremental_Base {
23
24 /**
25 * Upgrade step; adds tasks including 'runSql'.
26 *
27 * @param string $rev
28 * The version number matching this function name
29 */
30 public function upgrade_5_51_alpha1($rev): void {
31 $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
32 }
33
34 }