From 6dc2bed0822e8b5cafb0833d0a29753351d7056f Mon Sep 17 00:00:00 2001 From: Kevin Cristiano <kcristiano@kcristiano.com> Date: Thu, 3 Jun 2021 08:10:38 -0400 Subject: [PATCH] 5.38.0 missing search-kit sql files Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com> --- civicrm/ext/search_kit/sql/auto_install.sql | 66 +++++++++++++++++++ civicrm/ext/search_kit/sql/auto_uninstall.sql | 22 +++++++ 2 files changed, 88 insertions(+) create mode 100644 civicrm/ext/search_kit/sql/auto_install.sql create mode 100644 civicrm/ext/search_kit/sql/auto_uninstall.sql diff --git a/civicrm/ext/search_kit/sql/auto_install.sql b/civicrm/ext/search_kit/sql/auto_install.sql new file mode 100644 index 0000000000..3a4deb2b66 --- /dev/null +++ b/civicrm/ext/search_kit/sql/auto_install.sql @@ -0,0 +1,66 @@ +-- +--------------------------------------------------------------------+ +-- | Copyright CiviCRM LLC. All rights reserved. | +-- | | +-- | This work is published under the GNU AGPLv3 license with some | +-- | permitted exceptions and without any warranty. For full license | +-- | and copyright information, see https://civicrm.org/licensing | +-- +--------------------------------------------------------------------+ +-- +-- Generated from schema.tpl +-- DO NOT EDIT. Generated by CRM_Core_CodeGen +-- + +-- +--------------------------------------------------------------------+ +-- | Copyright CiviCRM LLC. All rights reserved. | +-- | | +-- | This work is published under the GNU AGPLv3 license with some | +-- | permitted exceptions and without any warranty. For full license | +-- | and copyright information, see https://civicrm.org/licensing | +-- +--------------------------------------------------------------------+ +-- +-- Generated from drop.tpl +-- DO NOT EDIT. Generated by CRM_Core_CodeGen +-- +-- /******************************************************* +-- * +-- * Clean up the existing tables +-- * +-- *******************************************************/ + +SET FOREIGN_KEY_CHECKS=0; + +DROP TABLE IF EXISTS `civicrm_search_display`; + +SET FOREIGN_KEY_CHECKS=1; +-- /******************************************************* +-- * +-- * Create new tables +-- * +-- *******************************************************/ + +-- /******************************************************* +-- * +-- * civicrm_search_display +-- * +-- * Search Kit - saved search displays +-- * +-- *******************************************************/ +CREATE TABLE `civicrm_search_display` ( + + + `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique SearchDisplay ID', + `name` varchar(255) NOT NULL COMMENT 'Unique name for identifying search display', + `label` varchar(255) NOT NULL COMMENT 'Label for identifying search display to administrators', + `saved_search_id` int unsigned NOT NULL COMMENT 'FK to saved search table.', + `type` varchar(128) NOT NULL COMMENT 'Type of display', + `settings` text DEFAULT NULL COMMENT 'Configuration data for the search display' +, + PRIMARY KEY (`id`) + + , UNIQUE INDEX `UI_saved_search__id_name`( + saved_search_id + , name + ) + +, CONSTRAINT FK_civicrm_search_display_saved_search_id FOREIGN KEY (`saved_search_id`) REFERENCES `civicrm_saved_search`(`id`) ON DELETE CASCADE +) ROW_FORMAT=DYNAMIC ; diff --git a/civicrm/ext/search_kit/sql/auto_uninstall.sql b/civicrm/ext/search_kit/sql/auto_uninstall.sql new file mode 100644 index 0000000000..ff5a74dc51 --- /dev/null +++ b/civicrm/ext/search_kit/sql/auto_uninstall.sql @@ -0,0 +1,22 @@ +-- +--------------------------------------------------------------------+ +-- | Copyright CiviCRM LLC. All rights reserved. | +-- | | +-- | This work is published under the GNU AGPLv3 license with some | +-- | permitted exceptions and without any warranty. For full license | +-- | and copyright information, see https://civicrm.org/licensing | +-- +--------------------------------------------------------------------+ +-- +-- Generated from drop.tpl +-- DO NOT EDIT. Generated by CRM_Core_CodeGen +-- +-- /******************************************************* +-- * +-- * Clean up the existing tables +-- * +-- *******************************************************/ + +SET FOREIGN_KEY_CHECKS=0; + +DROP TABLE IF EXISTS `civicrm_search_display`; + +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file -- GitLab