From 1386dd276feda3ca0c3f0fb09cc95172cc8a2a74 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 3 Mar 2022 20:37:43 -0800 Subject: [PATCH] FiveFortySix - Ensure that `civicrm_search_display` is up-to-date --- CRM/Upgrade/Incremental/php/FiveFortySix.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveFortySix.php b/CRM/Upgrade/Incremental/php/FiveFortySix.php index 901e21c0e5df..b20ccee67032 100644 --- a/CRM/Upgrade/Incremental/php/FiveFortySix.php +++ b/CRM/Upgrade/Incremental/php/FiveFortySix.php @@ -50,6 +50,12 @@ public function setPostUpgradeMessage(&$postUpgradeMessage, $rev): void { public function upgrade_5_46_alpha1($rev): void { $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev); $this->addTask('Add "Import Custom Data" menu', 'addImportCustomMenu'); + if (CRM_Core_DAO::checkTableExists('civicrm_search_display')) { + $this->addTask('Add SearchDisplay.acl_bypass', 'addColumn', + 'civicrm_search_display', 'acl_bypass', + "tinyint DEFAULT 0 COMMENT 'Skip permission checks and ACLs when running this display.'" + ); + } } /**