From d091eafdcce20ea738c9cee92522302a469d3ac3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 30 Oct 2020 15:38:10 -0400 Subject: [PATCH] Mark version beta2 & add upgrade script --- ext/search/CRM/Search/Upgrader.php | 10 ++++++++++ ext/search/info.xml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ext/search/CRM/Search/Upgrader.php b/ext/search/CRM/Search/Upgrader.php index 87dfb5f03d..9d314e4910 100644 --- a/ext/search/CRM/Search/Upgrader.php +++ b/ext/search/CRM/Search/Upgrader.php @@ -31,4 +31,14 @@ class CRM_Search_Upgrader extends CRM_Search_Upgrader_Base { ->execute(); } + public function upgrade_1000() { + $this->ctx->log->info('Applying update 1000 - install schema.'); + // For early, early adopters who installed the extension pre-beta + if (!CRM_Core_DAO::singleValueQuery("SHOW TABLES LIKE 'civicrm_search_display'")) { + $this->executeSqlFile('sql/auto_install.sql'); + } + CRM_Core_DAO::executeQuery("UPDATE civicrm_navigation SET url = 'civicrm/admin/search', name = 'search_kit' WHERE url = 'civicrm/search'"); + return TRUE; + } + } diff --git a/ext/search/info.xml b/ext/search/info.xml index 587477bff0..048de3f491 100644 --- a/ext/search/info.xml +++ b/ext/search/info.xml @@ -13,8 +13,8 @@ https://lab.civicrm.org/dev/report/-/issues http://www.gnu.org/licenses/agpl-3.0.html - 2020-11-07 - 1.0.beta1 + 2020-12-02 + 1.0.beta2 beta 5.31 -- 2.25.1