1 -- +--------------------------------------------------------------------+
2 -- | Copyright CiviCRM LLC. All rights reserved. |
4 -- | This work is published under the GNU AGPLv3 license with some |
5 -- | permitted exceptions and without any warranty. For full license |
6 -- | and copyright information, see https://civicrm.org/licensing |
7 -- +--------------------------------------------------------------------+
9 -- Generated from schema.tpl
10 -- DO NOT EDIT. Generated by CRM_Core_CodeGen
12 -- /*******************************************************
14 -- * Clean up the existing tables - this section generated from drop.tpl
16 -- *******************************************************/
18 SET FOREIGN_KEY_CHECKS
=0;
20 DROP TABLE IF EXISTS `civicrm_search_display`
;
22 SET FOREIGN_KEY_CHECKS
=1;
23 -- /*******************************************************
25 -- * Create new tables
27 -- *******************************************************/
29 -- /*******************************************************
31 -- * civicrm_search_display
33 -- * Search Kit - saved search displays
35 -- *******************************************************/
36 CREATE TABLE `civicrm_search_display`
(
37 `
id`
int unsigned
NOT NULL AUTO_INCREMENT
COMMENT 'Unique SearchDisplay ID',
38 `
name`
varchar(255) NOT NULL COMMENT 'Unique name for identifying search display',
39 `label`
varchar(255) NOT NULL COMMENT 'Label for identifying search display to administrators',
40 `saved_search_id`
int unsigned
NOT NULL COMMENT 'FK to saved search table.',
41 `
type`
varchar(128) NOT NULL COMMENT 'Type of display',
42 `settings`
text DEFAULT NULL COMMENT 'Configuration data for the search display',
43 `acl_bypass` tinyint
DEFAULT 0 COMMENT 'Skip permission checks and ACLs when running this display.',
45 UNIQUE INDEX `UI_saved_search__id_name`
(saved_search_id
, name),
46 CONSTRAINT FK_civicrm_search_display_saved_search_id
FOREIGN KEY (`saved_search_id`
) REFERENCES `civicrm_saved_search`
(`
id`
) ON DELETE CASCADE