3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
13 * Upgrade logic for the 5.51.x series.
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.
20 * This class may also implement `setPreUpgradeMessage()` and `setPostUpgradeMessage()` functions.
22 class CRM_Upgrade_Incremental_php_FiveFiftyOne
extends CRM_Upgrade_Incremental_Base
{
25 * Upgrade step; adds tasks including 'runSql'.
28 * The version number matching this function name
30 public function upgrade_5_51_alpha1($rev): void
{
31 $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);