Skip to content

Commit

Permalink
FiveFortySix - Ensure that civicrm_search_display is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Mar 4, 2022
1 parent 458e2d8 commit 1386dd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Upgrade/Incremental/php/FiveFortySix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'"
);
}
}

/**
Expand Down

0 comments on commit 1386dd2

Please sign in to comment.