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 0000000000000000000000000000000000000000..3a4deb2b66308508096ef1a3b7efa13d29044981 --- /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 0000000000000000000000000000000000000000..ff5a74dc51e711d951ffaea55aeab8f4c2ef4a8b --- /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