Skip to content

Commit

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

/**
Expand Down

0 comments on commit 448a357

Please sign in to comment.