Skip to content

Commit

Permalink
Merge pull request #22958 from totten/5.47-event-tz-warn
Browse files Browse the repository at this point in the history
(dev/core#2122) CiviEvent - Add pre-upgrade warning
  • Loading branch information
totten authored Mar 17, 2022
2 parents 6944979 + fd684a6 commit d7f26ca
Show file tree
Hide file tree
Showing 24 changed files with 31 additions and 23 deletions.
8 changes: 8 additions & 0 deletions CRM/Upgrade/Incremental/php/FiveFortySeven.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ class CRM_Upgrade_Incremental_php_FiveFortySeven extends CRM_Upgrade_Incremental
* @param null $currentVer
*/
public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NULL): void {
if ($rev === '5.47.alpha1' && version_compare($currentVer, '5.47', '<')) {
// Note: This warning should only exist within a few patch releases of 5.47. Do not merge-forward.
$prose = ts('<strong>CiviEvent users may have migration problems with v%1.</strong> CiviEvent users should consider v5.46 instead. <a %2>(Learn more...)</a>', [
1 => CRM_Utils_System::version(),
2 => 'target="_blank" href="https://civicrm.org/redirect/event-timezone-5.47"',
]);
$preUpgradeMessage = '<p>' . $prose . '</p>' . $preUpgradeMessage;
}
if ($rev === '5.47.alpha1') {
$count = CRM_Core_DAO::singleValueQuery('SELECT count(*) FROM civicrm_contact WHERE preferred_mail_format != "Both"');
if ($count) {
Expand Down
2 changes: 1 addition & 1 deletion ext/afform/admin/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-01-09</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>beta</develStage>
<compatibility>
<ver>5.23</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/afform/core/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-01-09</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>beta</develStage>
<compatibility>
<ver>5.23</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/afform/html/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-01-09</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>alpha</develStage>
<compatibility>
<ver>5.23</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/afform/mock/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-01-09</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion ext/authx/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-02-11</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>alpha</develStage>
<compatibility>
<ver>5.0</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/civigrant/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-11-11</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.47</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/ckeditor4/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">https://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-05-23</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.39</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/contributioncancelactions/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-10-12</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.32</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/eventcart/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-08-03</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion ext/ewaysingle/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-10-07</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion ext/financialacls/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-08-27</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.30</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/flexmailer/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-08-05</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<comments>
FlexMailer is an email delivery engine which replaces the internal guts
Expand Down
2 changes: 1 addition & 1 deletion ext/greenwich/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-07-21</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion ext/legacycustomsearches/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-07-25</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<tags>
<tag>mgmt:hidden</tag>
Expand Down
2 changes: 1 addition & 1 deletion ext/message_admin/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-06-12</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion ext/oauth-client/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-10-23</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.38</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/payflowpro/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-04-13</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.0</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/recaptcha/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-04-03</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion ext/search_kit/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-01-06</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<develStage>beta</develStage>
<compatibility>
<ver>5.38</ver>
Expand Down
2 changes: 1 addition & 1 deletion ext/sequentialcreditnotes/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-01-28</releaseDate>
<version>5.47.1</version>
<version>5.47.2</version>
<tags>
<tag>mgmt:hidden</tag>
</tags>
Expand Down
2 changes: 1 addition & 1 deletion sql/civicrm_generated.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -2941,7 +2941,7 @@ UNLOCK TABLES;
LOCK TABLES `civicrm_domain` WRITE;
/*!40000 ALTER TABLE `civicrm_domain` DISABLE KEYS */;
INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES
(1,'Default Domain Name',NULL,'5.47.1',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
(1,'Default Domain Name',NULL,'5.47.2',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
/*!40000 ALTER TABLE `civicrm_domain` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
2 changes: 1 addition & 1 deletion sql/test_data_second_domain.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -909,4 +909,4 @@ INSERT INTO civicrm_navigation
VALUES
( @domainID, CONCAT('civicrm/report/instance/', @instanceID,'&reset=1'), 'Mailing Detail Report', 'Mailing Detail Report', 'administer CiviMail', 'OR', @reportlastID, '1', NULL, @instanceID+2 );
UPDATE civicrm_report_instance SET navigation_id = LAST_INSERT_ID() WHERE id = @instanceID;
UPDATE civicrm_domain SET version = '5.47.1';
UPDATE civicrm_domain SET version = '5.47.2';
2 changes: 1 addition & 1 deletion xml/version.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<version>
<version_no>5.47.1</version_no>
<version_no>5.47.2</version_no>
</version>

0 comments on commit d7f26ca

Please sign in to comment.