From 448a357efa075cf4e623fd1c7c7bc66a31b6f428 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 3 Mar 2022 20:37:43 -0800 Subject: [PATCH] FiveFortySeven - Ensure that `civicrm_search_display` is up-to-date Note: This step was added to the codebase circa 5.47. The underlying schema change actually originated circa 5.46. The step should be idempotent. --- CRM/Upgrade/Incremental/php/FiveFortySeven.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveFortySeven.php b/CRM/Upgrade/Incremental/php/FiveFortySeven.php index 4626507168..4cc9616442 100644 --- a/CRM/Upgrade/Incremental/php/FiveFortySeven.php +++ b/CRM/Upgrade/Incremental/php/FiveFortySeven.php @@ -75,6 +75,12 @@ class CRM_Upgrade_Incremental_php_FiveFortySeven extends CRM_Upgrade_Incremental $this->addTask('core-issue#2122 - Set the timezone to the default for existing Events', 'setEventTZDefault'); $this->addTask('Drop CustomGroup UI_name_extends index', 'dropIndex', 'civicrm_custom_group', 'UI_name_extends'); $this->addTask('Add CustomGroup UI_name index', 'addIndex', 'civicrm_custom_group', ['name'], 'UI'); + 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.'" + ); + } } /** -- 2.25.1