From 585ed225cfcc1338d869a902ac88179894d08059 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 17 Sep 2023 13:27:00 -0400 Subject: [PATCH] don't crash on earlier versions --- CRM/Upgrade/Snapshot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Upgrade/Snapshot.php b/CRM/Upgrade/Snapshot.php index 5c3f4ef157..fd0bd75f0f 100644 --- a/CRM/Upgrade/Snapshot.php +++ b/CRM/Upgrade/Snapshot.php @@ -47,7 +47,7 @@ class CRM_Upgrade_Snapshot { static::$activationIssues = []; $version = CRM_Utils_SQL::getDatabaseVersion(); - if (stripos($version, 'mariadb') !== FALSE) { + if ((stripos($version, 'mariadb') !== FALSE) && version_compare($version, '10.6.0', '>=')) { // MariaDB briefly (10.6.0-10.6.5) flirted with the idea of phasing-out `COMPRESSED`. By default, snapshots won't work on those versions. // https://mariadb.com/kb/en/innodb-compressed-row-format/#read-only $roCompressed = CRM_Core_DAO::singleValueQuery('SELECT @@innodb_read_only_compressed'); -- 2.25.1