diff --git a/installation/sql/mysql/joomla.sql b/installation/sql/mysql/base.sql similarity index 56% rename from installation/sql/mysql/joomla.sql rename to installation/sql/mysql/base.sql index 1778aa24768c6..1389fa6f6a839 100644 --- a/installation/sql/mysql/joomla.sql +++ b/installation/sql/mysql/base.sql @@ -1,12 +1,6 @@ SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; --- --- Database: `joomla` --- - --- -------------------------------------------------------- - -- -- Table structure for table `#__assets` -- @@ -111,378 +105,6 @@ INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `titl -- -------------------------------------------------------- --- --- Table structure for table `#__associations` --- - -CREATE TABLE IF NOT EXISTS `#__associations` ( - `id` int(11) NOT NULL COMMENT 'A reference to the associated item.', - `context` varchar(50) NOT NULL COMMENT 'The context of the associated item.', - `key` char(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.', - PRIMARY KEY (`context`,`id`), - KEY `idx_key` (`key`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__banners` --- - -CREATE TABLE IF NOT EXISTS `#__banners` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `cid` int(11) NOT NULL DEFAULT 0, - `type` int(11) NOT NULL DEFAULT 0, - `name` varchar(255) NOT NULL DEFAULT '', - `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `imptotal` int(11) NOT NULL DEFAULT 0, - `impmade` int(11) NOT NULL DEFAULT 0, - `clicks` int(11) NOT NULL DEFAULT 0, - `clickurl` varchar(200) NOT NULL DEFAULT '', - `state` tinyint(3) NOT NULL DEFAULT 0, - `catid` int(10) unsigned NOT NULL DEFAULT 0, - `description` text NOT NULL, - `custombannercode` varchar(2048) NOT NULL, - `sticky` tinyint(1) unsigned NOT NULL DEFAULT 0, - `ordering` int(11) NOT NULL DEFAULT 0, - `metakey` text, - `params` text NOT NULL, - `own_prefix` tinyint(1) NOT NULL DEFAULT 0, - `metakey_prefix` varchar(400) NOT NULL DEFAULT '', - `purchase_type` tinyint(4) NOT NULL DEFAULT -1, - `track_clicks` tinyint(4) NOT NULL DEFAULT -1, - `track_impressions` tinyint(4) NOT NULL DEFAULT -1, - `checked_out` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `publish_up` datetime, - `publish_down` datetime, - `reset` datetime, - `created` datetime NOT NULL, - `language` char(7) NOT NULL DEFAULT '', - `created_by` int(10) unsigned NOT NULL DEFAULT 0, - `created_by_alias` varchar(255) NOT NULL DEFAULT '', - `modified` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `version` int(10) unsigned NOT NULL DEFAULT 1, - PRIMARY KEY (`id`), - KEY `idx_state` (`state`), - KEY `idx_own_prefix` (`own_prefix`), - KEY `idx_metakey_prefix` (`metakey_prefix`(100)), - KEY `idx_banner_catid` (`catid`), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__banner_clients` --- - -CREATE TABLE IF NOT EXISTS `#__banner_clients` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `contact` varchar(255) NOT NULL DEFAULT '', - `email` varchar(255) NOT NULL DEFAULT '', - `extrainfo` text NOT NULL, - `state` tinyint(3) NOT NULL DEFAULT 0, - `checked_out` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `metakey` text, - `own_prefix` tinyint(4) NOT NULL DEFAULT 0, - `metakey_prefix` varchar(400) NOT NULL DEFAULT '', - `purchase_type` tinyint(4) NOT NULL DEFAULT -1, - `track_clicks` tinyint(4) NOT NULL DEFAULT -1, - `track_impressions` tinyint(4) NOT NULL DEFAULT -1, - PRIMARY KEY (`id`), - KEY `idx_own_prefix` (`own_prefix`), - KEY `idx_metakey_prefix` (`metakey_prefix`(100)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__banner_tracks` --- - -CREATE TABLE IF NOT EXISTS `#__banner_tracks` ( - `track_date` datetime NOT NULL, - `track_type` int(10) unsigned NOT NULL, - `banner_id` int(10) unsigned NOT NULL, - `count` int(10) unsigned NOT NULL DEFAULT 0, - PRIMARY KEY (`track_date`,`track_type`,`banner_id`), - KEY `idx_track_date` (`track_date`), - KEY `idx_track_type` (`track_type`), - KEY `idx_banner_id` (`banner_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__categories` --- - -CREATE TABLE IF NOT EXISTS `#__categories` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', - `parent_id` int(10) unsigned NOT NULL DEFAULT 0, - `lft` int(11) NOT NULL DEFAULT 0, - `rgt` int(11) NOT NULL DEFAULT 0, - `level` int(10) unsigned NOT NULL DEFAULT 0, - `path` varchar(400) NOT NULL DEFAULT '', - `extension` varchar(50) NOT NULL DEFAULT '', - `title` varchar(255) NOT NULL DEFAULT '', - `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `note` varchar(255) NOT NULL DEFAULT '', - `description` mediumtext, - `published` tinyint(1) NOT NULL DEFAULT 0, - `checked_out` int(11) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `access` int(10) unsigned NOT NULL DEFAULT 0, - `params` text, - `metadesc` varchar(1024) NOT NULL DEFAULT '' COMMENT 'The meta description for the page.', - `metakey` varchar(1024) NOT NULL DEFAULT '' COMMENT 'The keywords for the page.', - `metadata` varchar(2048) NOT NULL DEFAULT '' COMMENT 'JSON encoded metadata properties.', - `created_user_id` int(10) unsigned NOT NULL DEFAULT 0, - `created_time` datetime NOT NULL, - `modified_user_id` int(10) unsigned NOT NULL DEFAULT 0, - `modified_time` datetime NOT NULL, - `hits` int(10) unsigned NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - `version` int(10) unsigned NOT NULL DEFAULT 1, - PRIMARY KEY (`id`), - KEY `cat_idx` (`extension`,`published`,`access`), - KEY `idx_access` (`access`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_path` (`path`(100)), - KEY `idx_left_right` (`lft`,`rgt`), - KEY `idx_alias` (`alias`(100)), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `#__categories` --- - -INSERT INTO `#__categories` (`id`, `asset_id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `extension`, `title`, `alias`, `note`, `description`, `published`, `checked_out`, `checked_out_time`, `access`, `params`, `metadesc`, `metakey`, `metadata`, `created_user_id`, `created_time`, `modified_user_id`, `modified_time`, `hits`, `language`, `version`) VALUES -(1, 0, 0, 0, 11, 0, '', 'system', 'ROOT', 'root', '', '', 1, 0, NULL, 1, '{}', '', '', '{}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), -(2, 27, 1, 1, 2, 1, 'uncategorised', 'com_content', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":"","workflow_id":"use_default"}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), -(3, 28, 1, 3, 4, 1, 'uncategorised', 'com_banners', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), -(4, 29, 1, 5, 6, 1, 'uncategorised', 'com_contact', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), -(5, 30, 1, 7, 8, 1, 'uncategorised', 'com_newsfeeds', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), -(7, 32, 1, 9, 10, 1, 'uncategorised', 'com_users', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1); - --- -------------------------------------------------------- - --- --- Table structure for table `#__contact_details` --- - -CREATE TABLE IF NOT EXISTS `#__contact_details` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, - `con_position` varchar(255), - `address` text, - `suburb` varchar(100), - `state` varchar(100), - `country` varchar(100), - `postcode` varchar(100), - `telephone` varchar(255), - `fax` varchar(255), - `misc` mediumtext, - `image` varchar(255), - `email_to` varchar(255), - `default_con` tinyint(1) unsigned NOT NULL DEFAULT 0, - `published` tinyint(1) NOT NULL DEFAULT 0, - `checked_out` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `ordering` int(11) NOT NULL DEFAULT 0, - `params` text NOT NULL, - `user_id` int(11) NOT NULL DEFAULT 0, - `catid` int(11) NOT NULL DEFAULT 0, - `access` int(10) unsigned NOT NULL DEFAULT 0, - `mobile` varchar(255) NOT NULL DEFAULT '', - `webpage` varchar(255) NOT NULL DEFAULT '', - `sortname1` varchar(255) NOT NULL DEFAULT '', - `sortname2` varchar(255) NOT NULL DEFAULT '', - `sortname3` varchar(255) NOT NULL DEFAULT '', - `language` varchar(7) NOT NULL, - `created` datetime NOT NULL, - `created_by` int(10) unsigned NOT NULL DEFAULT 0, - `created_by_alias` varchar(255) NOT NULL DEFAULT '', - `modified` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `metakey` text, - `metadesc` text NOT NULL, - `metadata` text NOT NULL, - `featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if contact is featured.', - `publish_up` datetime, - `publish_down` datetime, - `version` int(10) unsigned NOT NULL DEFAULT 1, - `hits` int(10) unsigned NOT NULL DEFAULT 0, - PRIMARY KEY (`id`), - KEY `idx_access` (`access`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_state` (`published`), - KEY `idx_catid` (`catid`), - KEY `idx_createdby` (`created_by`), - KEY `idx_featured_catid` (`featured`,`catid`), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__content` --- - -CREATE TABLE IF NOT EXISTS `#__content` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', - `title` varchar(255) NOT NULL DEFAULT '', - `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `introtext` mediumtext NOT NULL, - `fulltext` mediumtext NOT NULL, - `state` tinyint(3) NOT NULL DEFAULT 0, - `catid` int(10) unsigned NOT NULL DEFAULT 0, - `created` datetime NOT NULL, - `created_by` int(10) unsigned NOT NULL DEFAULT 0, - `created_by_alias` varchar(255) NOT NULL DEFAULT '', - `modified` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime NULL DEFAULT NULL, - `publish_up` datetime NULL DEFAULT NULL, - `publish_down` datetime NULL DEFAULT NULL, - `images` text NOT NULL, - `urls` text NOT NULL, - `attribs` varchar(5120) NOT NULL, - `version` int(10) unsigned NOT NULL DEFAULT 1, - `ordering` int(11) NOT NULL DEFAULT 0, - `metakey` text, - `metadesc` text NOT NULL, - `access` int(10) unsigned NOT NULL DEFAULT 0, - `hits` int(10) unsigned NOT NULL DEFAULT 0, - `metadata` text NOT NULL, - `featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if article is featured.', - `language` char(7) NOT NULL COMMENT 'The language code for the article.', - `note` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `idx_access` (`access`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_state` (`state`), - KEY `idx_catid` (`catid`), - KEY `idx_createdby` (`created_by`), - KEY `idx_featured_catid` (`featured`,`catid`), - KEY `idx_language` (`language`), - KEY `idx_alias` (`alias`(191)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__content_frontpage` --- - -CREATE TABLE IF NOT EXISTS `#__content_frontpage` ( - `content_id` int(11) NOT NULL DEFAULT 0, - `ordering` int(11) NOT NULL DEFAULT 0, - `featured_up` datetime, - `featured_down` datetime, - PRIMARY KEY (`content_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__content_rating` --- - -CREATE TABLE IF NOT EXISTS `#__content_rating` ( - `content_id` int(11) NOT NULL DEFAULT 0, - `rating_sum` int(10) unsigned NOT NULL DEFAULT 0, - `rating_count` int(10) unsigned NOT NULL DEFAULT 0, - `lastip` varchar(50) NOT NULL DEFAULT '', - PRIMARY KEY (`content_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__content_types` --- - -CREATE TABLE IF NOT EXISTS `#__content_types` ( - `type_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `type_title` varchar(255) NOT NULL DEFAULT '', - `type_alias` varchar(400) NOT NULL DEFAULT '', - `table` varchar(2048) NOT NULL DEFAULT '', - `rules` text NOT NULL, - `field_mappings` text NOT NULL, - `router` varchar(255) NOT NULL DEFAULT '', - `content_history_options` varchar(5120) COMMENT 'JSON string for com_contenthistory options', - PRIMARY KEY (`type_id`), - KEY `idx_alias` (`type_alias`(100)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=10000; - --- --- Dumping data for table `#__content_types` --- - -INSERT INTO `#__content_types` (`type_id`, `type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) VALUES -(1, 'Article', 'com_content.article', '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}}', 'ContentHelperRoute::getArticleRoute', '{"formFile":"administrator\\/components\\/com_content\\/forms\\/article.xml", "hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits", "ordering"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), -(2, 'Contact', 'com_contact.contact', '{"special":{"dbtable":"#__contact_details","key":"id","type":"ContactTable","prefix":"Joomla\\\\Component\\\\Contact\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}', 'ContactHelperRoute::getContactRoute', '{"formFile":"administrator\\/components\\/com_contact\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[ {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ] }'), -(3, 'Newsfeed', 'com_newsfeeds.newsfeed', '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"NewsfeedTable","prefix":"Joomla\\\\Component\\\\Newsfeeds\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}', 'NewsfeedsHelperRoute::getNewsfeedRoute', '{"formFile":"administrator\\/components\\/com_newsfeeds\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), -(4, 'User', 'com_users.user', '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerDate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "asset_id":"null"}, "special":{}}', '', ''), -(5, 'Article Category', 'com_content.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContentHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(6, 'Contact Category', 'com_contact.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContactHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(7, 'Newsfeeds Category', 'com_newsfeeds.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'NewsfeedsHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(8, 'Tag', 'com_tags.tag', '{"special":{"dbtable":"#__tags","key":"tag_id","type":"TagTable","prefix":"Joomla\\\\Component\\\\Tags\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "asset_id":"null"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}', 'TagsHelperRoute::getTagRoute', '{"formFile":"administrator\\/components\\/com_tags\\/forms\\/tag.xml", "hideFields":["checked_out","checked_out_time","version", "lft", "rgt", "level", "path", "urls", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), -(9, 'Banner', 'com_banners.banner', '{"special":{"dbtable":"#__banners","key":"id","type":"BannerTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"imptotal":"imptotal", "impmade":"impmade", "clicks":"clicks", "clickurl":"clickurl", "custombannercode":"custombannercode", "cid":"cid", "purchase_type":"purchase_type", "track_impressions":"track_impressions", "track_clicks":"track_clicks"}}', '','{"formFile":"administrator\\/components\\/com_banners\\/forms\\/banner.xml", "hideFields":["checked_out","checked_out_time","version", "reset"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "imptotal", "impmade", "reset"], "convertToInt":["publish_up", "publish_down", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), -(10, 'Banners Category', 'com_banners.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}','','{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(11, 'Banner Client', 'com_banners.client', '{"special":{"dbtable":"#__banner_clients","key":"id","type":"ClientTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_banners\\/forms\\/client.xml", "hideFields":["checked_out","checked_out_time"], "ignoreChanges":["checked_out", "checked_out_time"], "convertToInt":[], "displayLookup":[]}'), -(12, 'User Notes', 'com_users.note', '{"special":{"dbtable":"#__user_notes","key":"id","type":"NoteTable","prefix":"Joomla\\\\Component\\\\Users\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_users\\/forms\\/note.xml", "hideFields":["checked_out","checked_out_time", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time"], "convertToInt":["publish_up", "publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), -(13, 'User Notes Category', 'com_users.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', '', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'); - --- -------------------------------------------------------- - --- --- Table structure for table `#__contentitem_tag_map` --- - -CREATE TABLE IF NOT EXISTS `#__contentitem_tag_map` ( - `type_alias` varchar(255) NOT NULL DEFAULT '', - `core_content_id` int(10) unsigned NOT NULL COMMENT 'PK from the core content table', - `content_item_id` int(11) NOT NULL COMMENT 'PK from the content type table', - `tag_id` int(10) unsigned NOT NULL COMMENT 'PK from the tag table', - `tag_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of most recent save for this tag-item', - `type_id` mediumint(8) NOT NULL COMMENT 'PK from the content_type table', - UNIQUE KEY `uc_ItemnameTagid` (`type_id`,`content_item_id`,`tag_id`), - KEY `idx_tag_type` (`tag_id`,`type_id`), - KEY `idx_date_id` (`tag_date`,`tag_id`), - KEY `idx_core_content_id` (`core_content_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Maps items from content tables to tags'; - --- -------------------------------------------------------- - --- --- Table structure for table `#__csp` --- - -CREATE TABLE IF NOT EXISTS `#__csp` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `document_uri` varchar(500) NOT NULL DEFAULT '', - `blocked_uri` varchar(500) NOT NULL DEFAULT '', - `directive` varchar(500) NOT NULL DEFAULT '', - `client` varchar(500) NOT NULL DEFAULT '', - `created` datetime NOT NULL, - `modified` datetime NOT NULL, - `published` tinyint(1) NOT NULL DEFAULT 0, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__extensions` -- @@ -759,519 +381,6 @@ SELECT `extension_id`, 'English (en-GB)', 'language', 'en-GB', '', 3, 1, 1, 1, 1 -- -------------------------------------------------------- --- --- Table structure for table `#__fields` --- - -CREATE TABLE IF NOT EXISTS `#__fields` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `asset_id` int(10) unsigned NOT NULL DEFAULT 0, - `context` varchar(255) NOT NULL DEFAULT '', - `group_id` int(10) unsigned NOT NULL DEFAULT 0, - `title` varchar(255) NOT NULL DEFAULT '', - `name` varchar(255) NOT NULL DEFAULT '', - `label` varchar(255) NOT NULL DEFAULT '', - `default_value` text, - `type` varchar(255) NOT NULL DEFAULT 'text', - `note` varchar(255) NOT NULL DEFAULT '', - `description` text NOT NULL, - `state` tinyint(1) NOT NULL DEFAULT 0, - `required` tinyint(1) NOT NULL DEFAULT 0, - `checked_out` int(11) NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `ordering` int(11) NOT NULL DEFAULT 0, - `params` text NOT NULL, - `fieldparams` text NOT NULL, - `language` char(7) NOT NULL DEFAULT '', - `created_time` datetime NOT NULL, - `created_user_id` int(10) unsigned NOT NULL DEFAULT 0, - `modified_time` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `access` int(11) NOT NULL DEFAULT 1, - PRIMARY KEY (`id`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_state` (`state`), - KEY `idx_created_user_id` (`created_user_id`), - KEY `idx_access` (`access`), - KEY `idx_context` (`context`(191)), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__fields_categories` --- - -CREATE TABLE IF NOT EXISTS `#__fields_categories` ( - `field_id` int(11) NOT NULL DEFAULT 0, - `category_id` int(11) NOT NULL DEFAULT 0, - PRIMARY KEY (`field_id`,`category_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__fields_groups` --- - -CREATE TABLE IF NOT EXISTS `#__fields_groups` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `asset_id` int(10) unsigned NOT NULL DEFAULT 0, - `context` varchar(255) NOT NULL DEFAULT '', - `title` varchar(255) NOT NULL DEFAULT '', - `note` varchar(255) NOT NULL DEFAULT '', - `description` text NOT NULL, - `state` tinyint(1) NOT NULL DEFAULT 0, - `checked_out` int(11) NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `ordering` int(11) NOT NULL DEFAULT 0, - `params` text NOT NULL, - `language` char(7) NOT NULL DEFAULT '', - `created` datetime NOT NULL, - `created_by` int(10) unsigned NOT NULL DEFAULT 0, - `modified` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `access` int(11) NOT NULL DEFAULT 1, - PRIMARY KEY (`id`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_state` (`state`), - KEY `idx_created_by` (`created_by`), - KEY `idx_access` (`access`), - KEY `idx_context` (`context`(191)), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__fields_values` --- - -CREATE TABLE IF NOT EXISTS `#__fields_values` ( - `field_id` int(10) unsigned NOT NULL, - `item_id` varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.', - `value` text, - KEY `idx_field_id` (`field_id`), - KEY `idx_item_id` (`item_id`(191)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_filters` --- - -CREATE TABLE IF NOT EXISTS `#__finder_filters` ( - `filter_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `title` varchar(255) NOT NULL, - `alias` varchar(255) NOT NULL, - `state` tinyint(1) NOT NULL DEFAULT 1, - `created` datetime NOT NULL, - `created_by` int(10) unsigned NOT NULL DEFAULT 0, - `created_by_alias` varchar(255) NOT NULL DEFAULT '', - `modified` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `map_count` int(10) unsigned NOT NULL DEFAULT 0, - `data` text, - `params` mediumtext, - PRIMARY KEY (`filter_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_links` --- - -CREATE TABLE IF NOT EXISTS `#__finder_links` ( - `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `url` varchar(255) NOT NULL, - `route` varchar(255) NOT NULL, - `title` varchar(400) DEFAULT NULL, - `description` text, - `indexdate` datetime NOT NULL, - `md5sum` varchar(32) DEFAULT NULL, - `published` tinyint(1) NOT NULL DEFAULT 1, - `state` int(5) NOT NULL DEFAULT 1, - `access` int(5) NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - `publish_start_date` datetime, - `publish_end_date` datetime, - `start_date` datetime, - `end_date` datetime, - `list_price` double unsigned NOT NULL DEFAULT 0, - `sale_price` double unsigned NOT NULL DEFAULT 0, - `type_id` int(11) NOT NULL, - `object` mediumblob, - PRIMARY KEY (`link_id`), - KEY `idx_type` (`type_id`), - KEY `idx_title` (`title`(100)), - KEY `idx_md5` (`md5sum`), - KEY `idx_url` (`url`(75)), - KEY `idx_language` (`language`), - KEY `idx_published_list` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`), - KEY `idx_published_sale` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_links_terms` --- - -CREATE TABLE IF NOT EXISTS `#__finder_links_terms` ( - `link_id` int(10) unsigned NOT NULL, - `term_id` int(10) unsigned NOT NULL, - `weight` float unsigned NOT NULL DEFAULT 0, - PRIMARY KEY (`link_id`,`term_id`), - KEY `idx_term_weight` (`term_id`,`weight`), - KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_logging` --- - -CREATE TABLE IF NOT EXISTS `#__finder_logging` ( - `searchterm` VARCHAR(255) NOT NULL DEFAULT '', - `md5sum` VARCHAR(32) NOT NULL DEFAULT '', - `query` BLOB NOT NULL, - `hits` INT(11) NOT NULL DEFAULT 1, - `results` INT(11) NOT NULL DEFAULT 0, - PRIMARY KEY (`md5sum`), - INDEX `searchterm` (`searchterm`(191)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_taxonomy` --- - -CREATE TABLE IF NOT EXISTS `#__finder_taxonomy` ( - `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, - `parent_id` INT(10) UNSIGNED NOT NULL DEFAULT '0', - `lft` INT(11) NOT NULL DEFAULT '0', - `rgt` INT(11) NOT NULL DEFAULT '0', - `level` INT(10) UNSIGNED NOT NULL DEFAULT '0', - `path` VARCHAR(400) NOT NULL DEFAULT '', - `title` VARCHAR(255) NOT NULL DEFAULT '', - `alias` VARCHAR(400) NOT NULL DEFAULT '', - `state` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', - `access` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', - `language` CHAR(7) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - INDEX `idx_state` (`state`), - INDEX `idx_access` (`access`), - INDEX `idx_path` (`path`(100)), - INDEX `idx_left_right` (`lft`, `rgt`), - INDEX `idx_alias` (`alias`(100)), - INDEX `idx_language` (`language`), - INDEX `idx_parent_published` (`parent_id`, `state`, `access`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `#__finder_taxonomy` --- - -INSERT INTO `#__finder_taxonomy` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `state`, `access`, `language`) VALUES -(1, 0, 0, 1, 0, '', 'ROOT', 'root', 1, 1, '*'); - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_taxonomy_map` --- - -CREATE TABLE IF NOT EXISTS `#__finder_taxonomy_map` ( - `link_id` int(10) unsigned NOT NULL, - `node_id` int(10) unsigned NOT NULL, - PRIMARY KEY (`link_id`,`node_id`), - KEY `link_id` (`link_id`), - KEY `node_id` (`node_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_terms` --- - -CREATE TABLE IF NOT EXISTS `#__finder_terms` ( - `term_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `term` varchar(75) NOT NULL, - `stem` varchar(75) NOT NULL DEFAULT '', - `common` tinyint(1) unsigned NOT NULL DEFAULT 0, - `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0, - `weight` float unsigned NOT NULL DEFAULT 0, - `soundex` varchar(75) NOT NULL DEFAULT '', - `links` int(10) NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - PRIMARY KEY (`term_id`), - UNIQUE KEY `idx_term_language` (`term`,`language`), - KEY `idx_stem` (`stem`), - KEY `idx_term_phrase` (`term`,`phrase`), - KEY `idx_stem_phrase` (`stem`,`phrase`), - KEY `idx_soundex_phrase` (`soundex`,`phrase`), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_terms_common` --- - -CREATE TABLE IF NOT EXISTS `#__finder_terms_common` ( - `term` varchar(75) NOT NULL DEFAULT '', - `language` char(7) NOT NULL DEFAULT '', - `custom` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `idx_term_language` (`term`,`language`), - KEY `idx_lang` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_bin; - --- --- Dumping data for table `#__finder_terms_common` --- - -INSERT INTO `#__finder_terms_common` (`term`, `language`, `custom`) VALUES -('i', 'en', 0), -('me', 'en', 0), -('my', 'en', 0), -('myself', 'en', 0), -('we', 'en', 0), -('our', 'en', 0), -('ours', 'en', 0), -('ourselves', 'en', 0), -('you', 'en', 0), -('your', 'en', 0), -('yours', 'en', 0), -('yourself', 'en', 0), -('yourselves', 'en', 0), -('he', 'en', 0), -('him', 'en', 0), -('his', 'en', 0), -('himself', 'en', 0), -('she', 'en', 0), -('her', 'en', 0), -('hers', 'en', 0), -('herself', 'en', 0), -('it', 'en', 0), -('its', 'en', 0), -('itself', 'en', 0), -('they', 'en', 0), -('them', 'en', 0), -('their', 'en', 0), -('theirs', 'en', 0), -('themselves', 'en', 0), -('what', 'en', 0), -('which', 'en', 0), -('who', 'en', 0), -('whom', 'en', 0), -('this', 'en', 0), -('that', 'en', 0), -('these', 'en', 0), -('those', 'en', 0), -('am', 'en', 0), -('is', 'en', 0), -('are', 'en', 0), -('was', 'en', 0), -('were', 'en', 0), -('be', 'en', 0), -('been', 'en', 0), -('being', 'en', 0), -('have', 'en', 0), -('has', 'en', 0), -('had', 'en', 0), -('having', 'en', 0), -('do', 'en', 0), -('does', 'en', 0), -('did', 'en', 0), -('doing', 'en', 0), -('would', 'en', 0), -('should', 'en', 0), -('could', 'en', 0), -('ought', 'en', 0), -('i\'m', 'en', 0), -('you\'re', 'en', 0), -('he\'s', 'en', 0), -('she\'s', 'en', 0), -('it\'s', 'en', 0), -('we\'re', 'en', 0), -('they\'re', 'en', 0), -('i\'ve', 'en', 0), -('you\'ve', 'en', 0), -('we\'ve', 'en', 0), -('they\'ve', 'en', 0), -('i\'d', 'en', 0), -('you\'d', 'en', 0), -('he\'d', 'en', 0), -('she\'d', 'en', 0), -('we\'d', 'en', 0), -('they\'d', 'en', 0), -('i\'ll', 'en', 0), -('you\'ll', 'en', 0), -('he\'ll', 'en', 0), -('she\'ll', 'en', 0), -('we\'ll', 'en', 0), -('they\'ll', 'en', 0), -('isn\'t', 'en', 0), -('aren\'t', 'en', 0), -('wasn\'t', 'en', 0), -('weren\'t', 'en', 0), -('hasn\'t', 'en', 0), -('haven\'t', 'en', 0), -('hadn\'t', 'en', 0), -('doesn\'t', 'en', 0), -('don\'t', 'en', 0), -('didn\'t', 'en', 0), -('won\'t', 'en', 0), -('wouldn\'t', 'en', 0), -('shan\'t', 'en', 0), -('shouldn\'t', 'en', 0), -('can\'t', 'en', 0), -('cannot', 'en', 0), -('couldn\'t', 'en', 0), -('mustn\'t', 'en', 0), -('let\'s', 'en', 0), -('that\'s', 'en', 0), -('who\'s', 'en', 0), -('what\'s', 'en', 0), -('here\'s', 'en', 0), -('there\'s', 'en', 0), -('when\'s', 'en', 0), -('where\'s', 'en', 0), -('why\'s', 'en', 0), -('how\'s', 'en', 0), -('a', 'en', 0), -('an', 'en', 0), -('the', 'en', 0), -('and', 'en', 0), -('but', 'en', 0), -('if', 'en', 0), -('or', 'en', 0), -('because', 'en', 0), -('as', 'en', 0), -('until', 'en', 0), -('while', 'en', 0), -('of', 'en', 0), -('at', 'en', 0), -('by', 'en', 0), -('for', 'en', 0), -('with', 'en', 0), -('about', 'en', 0), -('against', 'en', 0), -('between', 'en', 0), -('into', 'en', 0), -('through', 'en', 0), -('during', 'en', 0), -('before', 'en', 0), -('after', 'en', 0), -('above', 'en', 0), -('below', 'en', 0), -('to', 'en', 0), -('from', 'en', 0), -('up', 'en', 0), -('down', 'en', 0), -('in', 'en', 0), -('out', 'en', 0), -('on', 'en', 0), -('off', 'en', 0), -('over', 'en', 0), -('under', 'en', 0), -('again', 'en', 0), -('further', 'en', 0), -('then', 'en', 0), -('once', 'en', 0), -('here', 'en', 0), -('there', 'en', 0), -('when', 'en', 0), -('where', 'en', 0), -('why', 'en', 0), -('how', 'en', 0), -('all', 'en', 0), -('any', 'en', 0), -('both', 'en', 0), -('each', 'en', 0), -('few', 'en', 0), -('more', 'en', 0), -('most', 'en', 0), -('other', 'en', 0), -('some', 'en', 0), -('such', 'en', 0), -('no', 'en', 0), -('nor', 'en', 0), -('not', 'en', 0), -('only', 'en', 0), -('own', 'en', 0), -('same', 'en', 0), -('so', 'en', 0), -('than', 'en', 0), -('too', 'en', 0), -('very', 'en', 0); - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_tokens` --- - -CREATE TABLE IF NOT EXISTS `#__finder_tokens` ( - `term` varchar(75) NOT NULL, - `stem` varchar(75) NOT NULL DEFAULT '', - `common` tinyint(1) unsigned NOT NULL DEFAULT 0, - `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0, - `weight` float unsigned NOT NULL DEFAULT 1, - `context` tinyint(1) unsigned NOT NULL DEFAULT 2, - `language` char(7) NOT NULL DEFAULT '', - KEY `idx_word` (`term`), - KEY `idx_stem` (`stem`), - KEY `idx_context` (`context`), - KEY `idx_language` (`language`) -) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_tokens_aggregate` --- - -CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` ( - `term_id` int(10) unsigned NOT NULL, - `term` varchar(75) NOT NULL, - `stem` varchar(75) NOT NULL DEFAULT '', - `common` tinyint(1) unsigned NOT NULL DEFAULT 0, - `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0, - `term_weight` float unsigned NOT NULL DEFAULT 0, - `context` tinyint(1) unsigned NOT NULL DEFAULT 2, - `context_weight` float unsigned NOT NULL DEFAULT 0, - `total_weight` float unsigned NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - KEY `token` (`term`), - KEY `keyword_id` (`term_id`) -) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__finder_types` --- - -CREATE TABLE IF NOT EXISTS `#__finder_types` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `title` varchar(100) NOT NULL, - `mime` varchar(100) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `title` (`title`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__languages` -- @@ -1396,6 +505,7 @@ INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link SELECT 21, 'main', 'com_finder_searches', 'Smart-Search-Searches', '', 'Smart Search/Searches', 'index.php?option=com_finder&view=searches', 'component', 1, 13, 2, `extension_id`, 0, NULL, 0, 0, 'class:finder-searches', 0, '', 36, 37, 0, '*', 1, NULL, NULL FROM `#__extensions` WHERE `name` = 'com_finder'; INSERT INTO `#__menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`, `publish_up`, `publish_down`) SELECT 101, 'mainmenu', 'Home', 'home', '', 'home', 'index.php?option=com_content&view=featured', 'component', 1, 1, 1, `extension_id`, 0, NULL, 0, 1, '', 0, '{"featured_categories":[""],"layout_type":"blog","num_leading_articles":"1","num_intro_articles":"3","num_columns":"3","num_links":"0","multi_column_order":"1","orderby_pri":"","orderby_sec":"front","order_date":"","show_pagination":"2","show_pagination_results":"1","show_title":"","link_titles":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_vote":"","show_readmore":"","show_readmore_title":"","show_hits":"","show_noauth":"","show_feed_link":"1","feed_summary":"","menu-anchor_title":"","menu-anchor_css":"","menu_image":"","menu_text":1,"page_title":"","show_page_heading":1,"page_heading":"","pageclass_sfx":"","menu-meta_description":"","menu-meta_keywords":"","robots":"","secure":0}', 41, 42, 1, '*', 0, NULL, NULL FROM `#__extensions` WHERE `name` = 'com_content'; + -- -------------------------------------------------------- -- @@ -1422,39 +532,6 @@ INSERT IGNORE INTO `#__menu_types` (`id`, `asset_id`, `menutype`, `title`, `desc -- -------------------------------------------------------- --- --- Table structure for table `#__messages` --- - -CREATE TABLE IF NOT EXISTS `#__messages` ( - `message_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_id_from` int(10) unsigned NOT NULL DEFAULT 0, - `user_id_to` int(10) unsigned NOT NULL DEFAULT 0, - `folder_id` tinyint(3) unsigned NOT NULL DEFAULT 0, - `date_time` datetime NOT NULL, - `state` tinyint(1) NOT NULL DEFAULT 0, - `priority` tinyint(1) unsigned NOT NULL DEFAULT 0, - `subject` varchar(255) NOT NULL DEFAULT '', - `message` text NOT NULL, - PRIMARY KEY (`message_id`), - KEY `useridto_state` (`user_id_to`,`state`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__messages_cfg` --- - -CREATE TABLE IF NOT EXISTS `#__messages_cfg` ( - `user_id` int(10) unsigned NOT NULL DEFAULT 0, - `cfg_name` varchar(100) NOT NULL DEFAULT '', - `cfg_value` varchar(255) NOT NULL DEFAULT '', - UNIQUE KEY `idx_user_var_name` (`user_id`,`cfg_name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__modules` -- @@ -1524,6 +601,7 @@ INSERT INTO `#__modules` (`id`, `asset_id`, `title`, `note`, `content`, `orderin (106, 83, 'Help Dashboard', '', '', 1, 'cpanel-help', 0, NULL, NULL, NULL, 1, 'mod_submenu', 1, 0, '{"menutype":"*","preset":"help","layout":"_:default","moduleclass_sfx":"","style":"System-none","module_tag":"div","bootstrap_size":"0","header_tag":"h3","header_class":""}', 1, '*'), (107, 84, 'Privacy Requests', '', '', 1, 'cpanel-privacy', 0, NULL, NULL, NULL, 1, 'mod_privacy_dashboard', 1, 1, '{"layout":"_:default","moduleclass_sfx":"","cache":1,"cache_time":900,"cachemode":"static","style":"0","module_tag":"div","bootstrap_size":"0","header_tag":"h3","header_class":""}', 1, '*'), (108, 85, 'Privacy Status', '', '', 1, 'cpanel-privacy', 0, NULL, NULL, NULL, 1, 'mod_privacy_status', 1, 1, '{"layout":"_:default","moduleclass_sfx":"","cache":1,"cache_time":900,"cachemode":"static","style":"0","module_tag":"div","bootstrap_size":"0","header_tag":"h3","header_class":""}', 1, '*'); + -- -------------------------------------------------------- -- @@ -1582,161 +660,6 @@ INSERT INTO `#__modules_menu` (`moduleid`, `menuid`) VALUES -- -------------------------------------------------------- --- --- Table structure for table `#__newsfeeds` --- - -CREATE TABLE IF NOT EXISTS `#__newsfeeds` ( - `catid` int(11) NOT NULL DEFAULT 0, - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(100) NOT NULL DEFAULT '', - `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `link` varchar(2048) NOT NULL DEFAULT '', - `published` tinyint(1) NOT NULL DEFAULT 0, - `numarticles` int(10) unsigned NOT NULL DEFAULT 1, - `cache_time` int(10) unsigned NOT NULL DEFAULT 3600, - `checked_out` int(10) unsigned NOT NULL DEFAULT 0, - `checked_out_time` datetime, - `ordering` int(11) NOT NULL DEFAULT 0, - `rtl` tinyint(4) NOT NULL DEFAULT 0, - `access` int(10) unsigned NOT NULL DEFAULT 0, - `language` char(7) NOT NULL DEFAULT '', - `params` text NOT NULL, - `created` datetime NOT NULL, - `created_by` int(10) unsigned NOT NULL DEFAULT 0, - `created_by_alias` varchar(255) NOT NULL DEFAULT '', - `modified` datetime NOT NULL, - `modified_by` int(10) unsigned NOT NULL DEFAULT 0, - `metakey` text, - `metadesc` text NOT NULL, - `metadata` text NOT NULL, - `publish_up` datetime, - `publish_down` datetime, - `description` text NOT NULL, - `version` int(10) unsigned NOT NULL DEFAULT 1, - `hits` int(10) unsigned NOT NULL DEFAULT 0, - `images` text NOT NULL, - PRIMARY KEY (`id`), - KEY `idx_access` (`access`), - KEY `idx_checkout` (`checked_out`), - KEY `idx_state` (`published`), - KEY `idx_catid` (`catid`), - KEY `idx_createdby` (`created_by`), - KEY `idx_language` (`language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__overrider` --- - -CREATE TABLE IF NOT EXISTS `#__overrider` ( - `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', - `constant` varchar(255) NOT NULL, - `string` text NOT NULL, - `file` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__postinstall_messages` --- - -CREATE TABLE IF NOT EXISTS `#__postinstall_messages` ( - `postinstall_message_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `extension_id` bigint(20) NOT NULL DEFAULT 700 COMMENT 'FK to #__extensions', - `title_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for the title', - `description_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for description', - `action_key` varchar(255) NOT NULL DEFAULT '', - `language_extension` varchar(255) NOT NULL DEFAULT 'com_postinstall' COMMENT 'Extension holding lang keys', - `language_client_id` tinyint(3) NOT NULL DEFAULT 1, - `type` varchar(10) NOT NULL DEFAULT 'link' COMMENT 'Message type - message, link, action', - `action_file` varchar(255) DEFAULT '' COMMENT 'RAD URI to the PHP file containing action method', - `action` varchar(255) DEFAULT '' COMMENT 'Action method name or URL', - `condition_file` varchar(255) DEFAULT NULL COMMENT 'RAD URI to file holding display condition method', - `condition_method` varchar(255) DEFAULT NULL COMMENT 'Display condition method, must return boolean', - `version_introduced` varchar(50) NOT NULL DEFAULT '3.2.0' COMMENT 'Version when this message was introduced', - `enabled` tinyint(3) NOT NULL DEFAULT 1, - PRIMARY KEY (`postinstall_message_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `#__postinstall_messages` --- - -INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) -SELECT `extension_id`, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION', 'plg_twofactorauth_totp', 1, 'action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_condition', '3.2.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; -INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) -SELECT `extension_id`, 'COM_CPANEL_WELCOME_BEGINNERS_TITLE', 'COM_CPANEL_WELCOME_BEGINNERS_MESSAGE', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.2.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; -INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) -SELECT `extension_id`, 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE', 'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/statscollection.php', 'admin_postinstall_statscollection_condition', '3.5.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; -INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) -SELECT `extension_id`, 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION', 'plg_system_updatenotification', 1, 'action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_condition', '3.6.3', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; -INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) -SELECT `extension_id`, 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheaders', 1, 'action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_condition', '4.0.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; --- -------------------------------------------------------- - --- --- Table structure for table `#__privacy_requests` --- - -CREATE TABLE IF NOT EXISTS `#__privacy_requests` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `email` varchar(100) NOT NULL DEFAULT '', - `requested_at` datetime NOT NULL, - `status` tinyint(4) NOT NULL DEFAULT 0, - `request_type` varchar(25) NOT NULL DEFAULT '', - `confirm_token` varchar(100) NOT NULL DEFAULT '', - `confirm_token_created_at` datetime, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__privacy_consents` --- - -CREATE TABLE IF NOT EXISTS `#__privacy_consents` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_id` int(10) unsigned NOT NULL DEFAULT 0, - `state` INT(10) NOT NULL DEFAULT 1, - `created` datetime NOT NULL, - `subject` varchar(255) NOT NULL DEFAULT '', - `body` text NOT NULL, - `remind` tinyint(4) NOT NULL DEFAULT 0, - `token` varchar(100) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `idx_user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__redirect_links` --- - -CREATE TABLE IF NOT EXISTS `#__redirect_links` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_url` varchar(2048) NOT NULL, - `new_url` varchar(2048), - `referer` varchar(2048) NOT NULL, - `comment` varchar(255) NOT NULL DEFAULT '', - `hits` int(10) unsigned NOT NULL DEFAULT 0, - `published` tinyint(4) NOT NULL, - `created_date` datetime NOT NULL, - `modified_date` datetime NOT NULL, - `header` smallint(3) NOT NULL DEFAULT 301, - PRIMARY KEY (`id`), - KEY `idx_old_url` (`old_url`(100)), - KEY `idx_link_modifed` (`modified_date`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__schemas` -- @@ -1871,98 +794,6 @@ INSERT INTO `#__template_styles` (`id`, `template`, `client_id`, `home`, `title` -- -------------------------------------------------------- --- --- Table structure for table `#__ucm_base` --- - -CREATE TABLE IF NOT EXISTS `#__ucm_base` ( - `ucm_id` int(10) unsigned NOT NULL, - `ucm_item_id` int(10) NOT NULL, - `ucm_type_id` int(11) NOT NULL, - `ucm_language_id` int(11) NOT NULL, - PRIMARY KEY (`ucm_id`), - KEY `idx_ucm_item_id` (`ucm_item_id`), - KEY `idx_ucm_type_id` (`ucm_type_id`), - KEY `idx_ucm_language_id` (`ucm_language_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `#__ucm_content` --- - -CREATE TABLE IF NOT EXISTS `#__ucm_content` ( - `core_content_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `core_type_alias` varchar(400) NOT NULL DEFAULT '' COMMENT 'FK to the content types table', - `core_title` varchar(400) NOT NULL DEFAULT '', - `core_alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', - `core_body` mediumtext, - `core_state` tinyint(1) NOT NULL DEFAULT 0, - `core_checked_out_time` datetime, - `core_checked_out_user_id` int(10) unsigned NOT NULL DEFAULT 0, - `core_access` int(10) unsigned NOT NULL DEFAULT 0, - `core_params` text, - `core_featured` tinyint(4) unsigned NOT NULL DEFAULT 0, - `core_metadata` varchar(2048) NOT NULL DEFAULT '' COMMENT 'JSON encoded metadata properties.', - `core_created_user_id` int(10) unsigned NOT NULL DEFAULT 0, - `core_created_by_alias` varchar(255) NOT NULL DEFAULT '', - `core_created_time` datetime NOT NULL, - `core_modified_user_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Most recent user that modified', - `core_modified_time` datetime NOT NULL, - `core_language` char(7) NOT NULL DEFAULT '', - `core_publish_up` datetime, - `core_publish_down` datetime, - `core_content_item_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'ID from the individual type table', - `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', - `core_images` text, - `core_urls` text, - `core_hits` int(10) unsigned NOT NULL DEFAULT 0, - `core_version` int(10) unsigned NOT NULL DEFAULT 1, - `core_ordering` int(11) NOT NULL DEFAULT 0, - `core_metakey` text, - `core_metadesc` text, - `core_catid` int(10) unsigned NOT NULL DEFAULT 0, - `core_type_id` int(10) unsigned NOT NULL DEFAULT 0, - PRIMARY KEY (`core_content_id`), - KEY `tag_idx` (`core_state`,`core_access`), - KEY `idx_access` (`core_access`), - KEY `idx_alias` (`core_alias`(100)), - KEY `idx_language` (`core_language`), - KEY `idx_title` (`core_title`(100)), - KEY `idx_modified_time` (`core_modified_time`), - KEY `idx_created_time` (`core_created_time`), - KEY `idx_content_type` (`core_type_alias`(100)), - KEY `idx_core_modified_user_id` (`core_modified_user_id`), - KEY `idx_core_checked_out_user_id` (`core_checked_out_user_id`), - KEY `idx_core_created_user_id` (`core_created_user_id`), - KEY `idx_core_type_id` (`core_type_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Contains core content data in name spaced fields'; - --- -------------------------------------------------------- - --- --- Table structure for table `#__ucm_history` --- - -CREATE TABLE IF NOT EXISTS `#__ucm_history` ( - `version_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ucm_item_id` int(10) unsigned NOT NULL, - `ucm_type_id` int(10) unsigned NOT NULL, - `version_note` varchar(255) NOT NULL DEFAULT '' COMMENT 'Optional version name', - `save_date` datetime NOT NULL, - `editor_user_id` int(10) unsigned NOT NULL DEFAULT 0, - `character_count` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Number of characters in this version.', - `sha1_hash` varchar(50) NOT NULL DEFAULT '' COMMENT 'SHA1 hash of the version_data column.', - `version_data` mediumtext NOT NULL COMMENT 'json-encoded string of version data', - `keep_forever` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=auto delete; 1=keep', - PRIMARY KEY (`version_id`), - KEY `idx_ucm_item_id` (`ucm_type_id`,`ucm_item_id`), - KEY `idx_save_date` (`save_date`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__updates` -- @@ -2172,103 +1003,7 @@ CREATE TABLE IF NOT EXISTS `#__user_usergroup_map` ( PRIMARY KEY (`user_id`,`group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; --- --- Table structure for table `#__action_logs` --- - -CREATE TABLE IF NOT EXISTS `#__action_logs` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `message_language_key` varchar(255) NOT NULL DEFAULT '', - `message` text NOT NULL, - `log_date` datetime NOT NULL, - `extension` varchar(50) NOT NULL DEFAULT '', - `user_id` int(11) NOT NULL DEFAULT 0, - `item_id` int(11) NOT NULL DEFAULT 0, - `ip_address` VARCHAR(40) NOT NULL DEFAULT '0.0.0.0', - PRIMARY KEY (`id`), - KEY `idx_user_id` (`user_id`), - KEY `idx_user_id_logdate` (`user_id`, `log_date`), - KEY `idx_user_id_extension` (`user_id`, `extension`), - KEY `idx_extension_item_id` (`extension`, `item_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- --- Table structure for table `#__action_logs_extensions` --- - -CREATE TABLE IF NOT EXISTS `#__action_logs_extensions` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `extension` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - -INSERT INTO `#__action_logs_extensions` (`id`, `extension`) VALUES -(1, 'com_banners'), -(2, 'com_cache'), -(3, 'com_categories'), -(4, 'com_config'), -(5, 'com_contact'), -(6, 'com_content'), -(7, 'com_installer'), -(8, 'com_media'), -(9, 'com_menus'), -(10, 'com_messages'), -(11, 'com_modules'), -(12, 'com_newsfeeds'), -(13, 'com_plugins'), -(14, 'com_redirect'), -(15, 'com_tags'), -(16, 'com_templates'), -(17, 'com_users'), -(18, 'com_checkin'); - --- --- Table structure for table `#__action_log_config` --- - -CREATE TABLE IF NOT EXISTS `#__action_log_config` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `type_title` varchar(255) NOT NULL DEFAULT '', - `type_alias` varchar(255) NOT NULL DEFAULT '', - `id_holder` varchar(255), - `title_holder` varchar(255), - `table_name` varchar(255), - `text_prefix` varchar(255), - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - -INSERT INTO `#__action_log_config` (`id`, `type_title`, `type_alias`, `id_holder`, `title_holder`, `table_name`, `text_prefix`) VALUES -(1, 'article', 'com_content.article', 'id' ,'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), -(2, 'article', 'com_content.form', 'id', 'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), -(3, 'banner', 'com_banners.banner', 'id' ,'name' , '#__banners', 'PLG_ACTIONLOG_JOOMLA'), -(4, 'user_note', 'com_users.note', 'id', 'subject' ,'#__user_notes', 'PLG_ACTIONLOG_JOOMLA'), -(5, 'media', 'com_media.file', '' , 'name' , '', 'PLG_ACTIONLOG_JOOMLA'), -(6, 'category', 'com_categories.category', 'id' , 'title' , '#__categories', 'PLG_ACTIONLOG_JOOMLA'), -(7, 'menu', 'com_menus.menu', 'id' ,'title' , '#__menu_types', 'PLG_ACTIONLOG_JOOMLA'), -(8, 'menu_item', 'com_menus.item', 'id' , 'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'), -(9, 'newsfeed', 'com_newsfeeds.newsfeed', 'id' ,'name' , '#__newsfeeds', 'PLG_ACTIONLOG_JOOMLA'), -(10, 'link', 'com_redirect.link', 'id', 'old_url' , '#__redirect_links', 'PLG_ACTIONLOG_JOOMLA'), -(11, 'tag', 'com_tags.tag', 'id', 'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'), -(12, 'style', 'com_templates.style', 'id' , 'title' , '#__template_styles', 'PLG_ACTIONLOG_JOOMLA'), -(13, 'plugin', 'com_plugins.plugin', 'extension_id' , 'name' , '#__extensions', 'PLG_ACTIONLOG_JOOMLA'), -(14, 'component_config', 'com_config.component', 'extension_id' , 'name', '', 'PLG_ACTIONLOG_JOOMLA'), -(15, 'contact', 'com_contact.contact', 'id', 'name', '#__contact_details', 'PLG_ACTIONLOG_JOOMLA'), -(16, 'module', 'com_modules.module', 'id' ,'title', '#__modules', 'PLG_ACTIONLOG_JOOMLA'), -(17, 'access_level', 'com_users.level', 'id' , 'title', '#__viewlevels', 'PLG_ACTIONLOG_JOOMLA'), -(18, 'banner_client', 'com_banners.client', 'id', 'name', '#__banner_clients', 'PLG_ACTIONLOG_JOOMLA'), -(19, 'application_config', 'com_config.application', '', 'name', '', 'PLG_ACTIONLOG_JOOMLA'); - --- --- Table structure for table `#__action_logs_users` --- - -CREATE TABLE IF NOT EXISTS `#__action_logs_users` ( - `user_id` int(11) UNSIGNED NOT NULL, - `notify` tinyint(1) UNSIGNED NOT NULL, - `extensions` text NOT NULL, - PRIMARY KEY (`user_id`), - KEY `idx_notify` (`notify`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; +-- -------------------------------------------------------- -- -- Table structure for table `#__utf8_conversion` @@ -2284,6 +1019,8 @@ CREATE TABLE IF NOT EXISTS `#__utf8_conversion` ( INSERT INTO `#__utf8_conversion` (`converted`) VALUES (0); +-- -------------------------------------------------------- + -- -- Table structure for table `#__viewlevels` -- @@ -2310,23 +1047,6 @@ INSERT INTO `#__viewlevels` (`id`, `title`, `ordering`, `rules`) VALUES -- -------------------------------------------------------- --- --- Table structure for table `#__webauthn_credentials#__webauthn_credentials` --- - -CREATE TABLE IF NOT EXISTS `#__webauthn_credentials` ( - `id` VARCHAR(1000) NOT NULL COMMENT 'Credential ID', - `user_id` VARCHAR(128) NOT NULL COMMENT 'User handle', - `label` VARCHAR(190) NOT NULL COMMENT 'Human readable label', - `credential` MEDIUMTEXT NOT NULL COMMENT 'Credential source data, JSON format', - PRIMARY KEY (`id`(100)), - INDEX (`user_id`(100)) -) ENGINE = InnoDB - DEFAULT CHARSET = utf8mb4 - DEFAULT COLLATE = utf8mb4_unicode_ci; - --- -------------------------------------------------------- - -- -- Table structure for table `#__workflows` -- @@ -2366,6 +1086,8 @@ CREATE TABLE IF NOT EXISTS `#__workflows` ( INSERT INTO `#__workflows` (`id`, `asset_id`, `published`, `title`, `description`, `extension`, `default`, `core`, `ordering`, `created`, `created_by`, `modified`, `modified_by`, `checked_out_time`, `checked_out`) VALUES (1, 56, 1, 'COM_WORKFLOW_DEFAULT_WORKFLOW', '', 'com_content', 1, 1, 1, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 42, NULL, 0); +-- -------------------------------------------------------- + -- -- Table structure for table `#__workflow_associations` -- @@ -2381,6 +1103,8 @@ CREATE TABLE IF NOT EXISTS `#__workflow_associations` ( KEY `idx_extension` (`extension`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; +-- -------------------------------------------------------- + -- -- Table structure for table `#__workflow_stages` -- @@ -2415,6 +1139,8 @@ INSERT INTO `#__workflow_stages` (`id`, `asset_id`, `ordering`, `workflow_id`, ` (3, 59, 3, 1, 1, 'JTRASHED', '', -2, 0, NULL, 0), (4, 60, 4, 1, 1, 'JARCHIVED', '', 2, 0, NULL, 0); +-- -------------------------------------------------------- + -- -- Table structure for table `#__workflow_transitions` -- @@ -2449,25 +1175,3 @@ INSERT INTO `#__workflow_transitions` (`id`, `asset_id`, `published`, `ordering` (2, 62, 1, 2, 1, 'Publish', '', -1, 2, NULL, 0), (3, 63, 1, 3, 1, 'Trash', '', -1, 3, NULL, 0), (4, 64, 1, 4, 1, 'Archive', '', -1, 4, NULL, 0); - --- --- Table structure for table `#__mail_templates` --- - -CREATE TABLE IF NOT EXISTS `#__mail_templates` ( - `template_id` VARCHAR(127) NOT NULL DEFAULT '', - `language` char(7) NOT NULL DEFAULT '', - `subject` VARCHAR(255) NOT NULL DEFAULT '', - `body` TEXT NOT NULL, - `htmlbody` TEXT NOT NULL, - `attachments` TEXT NOT NULL, - `params` TEXT NOT NULL, - PRIMARY KEY (`template_id`, `language`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `#__mail_templates` --- - -INSERT INTO `#__mail_templates` (`template_id`, `language`, `subject`, `body`, `htmlbody`, `attachments`, `params`) VALUES -('com_config.test_mail', '', 'COM_CONFIG_SENDMAIL_SUBJECT', 'COM_CONFIG_SENDMAIL_BODY', '', '', '{"tags":["sitename","method"]}'); diff --git a/installation/sql/mysql/extensions.sql b/installation/sql/mysql/extensions.sql new file mode 100644 index 0000000000000..b71bd2068f476 --- /dev/null +++ b/installation/sql/mysql/extensions.sql @@ -0,0 +1,883 @@ +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + +-- +-- Table structure for table `#__banners` +-- + +CREATE TABLE IF NOT EXISTS `#__banners` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `cid` int(11) NOT NULL DEFAULT 0, + `type` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL DEFAULT '', + `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', + `imptotal` int(11) NOT NULL DEFAULT 0, + `impmade` int(11) NOT NULL DEFAULT 0, + `clicks` int(11) NOT NULL DEFAULT 0, + `clickurl` varchar(200) NOT NULL DEFAULT '', + `state` tinyint(3) NOT NULL DEFAULT 0, + `catid` int(10) unsigned NOT NULL DEFAULT 0, + `description` text NOT NULL, + `custombannercode` varchar(2048) NOT NULL, + `sticky` tinyint(1) unsigned NOT NULL DEFAULT 0, + `ordering` int(11) NOT NULL DEFAULT 0, + `metakey` text, + `params` text NOT NULL, + `own_prefix` tinyint(1) NOT NULL DEFAULT 0, + `metakey_prefix` varchar(400) NOT NULL DEFAULT '', + `purchase_type` tinyint(4) NOT NULL DEFAULT -1, + `track_clicks` tinyint(4) NOT NULL DEFAULT -1, + `track_impressions` tinyint(4) NOT NULL DEFAULT -1, + `checked_out` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `publish_up` datetime, + `publish_down` datetime, + `reset` datetime, + `created` datetime NOT NULL, + `language` char(7) NOT NULL DEFAULT '', + `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `created_by_alias` varchar(255) NOT NULL DEFAULT '', + `modified` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `version` int(10) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `idx_state` (`state`), + KEY `idx_own_prefix` (`own_prefix`), + KEY `idx_metakey_prefix` (`metakey_prefix`(100)), + KEY `idx_banner_catid` (`catid`), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__banner_clients` +-- + +CREATE TABLE IF NOT EXISTS `#__banner_clients` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL DEFAULT '', + `contact` varchar(255) NOT NULL DEFAULT '', + `email` varchar(255) NOT NULL DEFAULT '', + `extrainfo` text NOT NULL, + `state` tinyint(3) NOT NULL DEFAULT 0, + `checked_out` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `metakey` text, + `own_prefix` tinyint(4) NOT NULL DEFAULT 0, + `metakey_prefix` varchar(400) NOT NULL DEFAULT '', + `purchase_type` tinyint(4) NOT NULL DEFAULT -1, + `track_clicks` tinyint(4) NOT NULL DEFAULT -1, + `track_impressions` tinyint(4) NOT NULL DEFAULT -1, + PRIMARY KEY (`id`), + KEY `idx_own_prefix` (`own_prefix`), + KEY `idx_metakey_prefix` (`metakey_prefix`(100)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__banner_tracks` +-- + +CREATE TABLE IF NOT EXISTS `#__banner_tracks` ( + `track_date` datetime NOT NULL, + `track_type` int(10) unsigned NOT NULL, + `banner_id` int(10) unsigned NOT NULL, + `count` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`track_date`,`track_type`,`banner_id`), + KEY `idx_track_date` (`track_date`), + KEY `idx_track_type` (`track_type`), + KEY `idx_banner_id` (`banner_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__contact_details` +-- + +CREATE TABLE IF NOT EXISTS `#__contact_details` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, + `con_position` varchar(255), + `address` text, + `suburb` varchar(100), + `state` varchar(100), + `country` varchar(100), + `postcode` varchar(100), + `telephone` varchar(255), + `fax` varchar(255), + `misc` mediumtext, + `image` varchar(255), + `email_to` varchar(255), + `default_con` tinyint(1) unsigned NOT NULL DEFAULT 0, + `published` tinyint(1) NOT NULL DEFAULT 0, + `checked_out` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `ordering` int(11) NOT NULL DEFAULT 0, + `params` text NOT NULL, + `user_id` int(11) NOT NULL DEFAULT 0, + `catid` int(11) NOT NULL DEFAULT 0, + `access` int(10) unsigned NOT NULL DEFAULT 0, + `mobile` varchar(255) NOT NULL DEFAULT '', + `webpage` varchar(255) NOT NULL DEFAULT '', + `sortname1` varchar(255) NOT NULL DEFAULT '', + `sortname2` varchar(255) NOT NULL DEFAULT '', + `sortname3` varchar(255) NOT NULL DEFAULT '', + `language` varchar(7) NOT NULL, + `created` datetime NOT NULL, + `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `created_by_alias` varchar(255) NOT NULL DEFAULT '', + `modified` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `metakey` text, + `metadesc` text NOT NULL, + `metadata` text NOT NULL, + `featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if contact is featured.', + `publish_up` datetime, + `publish_down` datetime, + `version` int(10) unsigned NOT NULL DEFAULT 1, + `hits` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_state` (`published`), + KEY `idx_catid` (`catid`), + KEY `idx_createdby` (`created_by`), + KEY `idx_featured_catid` (`featured`,`catid`), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__content` +-- + +CREATE TABLE IF NOT EXISTS `#__content` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `title` varchar(255) NOT NULL DEFAULT '', + `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', + `introtext` mediumtext NOT NULL, + `fulltext` mediumtext NOT NULL, + `state` tinyint(3) NOT NULL DEFAULT 0, + `catid` int(10) unsigned NOT NULL DEFAULT 0, + `created` datetime NOT NULL, + `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `created_by_alias` varchar(255) NOT NULL DEFAULT '', + `modified` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime NULL DEFAULT NULL, + `publish_up` datetime NULL DEFAULT NULL, + `publish_down` datetime NULL DEFAULT NULL, + `images` text NOT NULL, + `urls` text NOT NULL, + `attribs` varchar(5120) NOT NULL, + `version` int(10) unsigned NOT NULL DEFAULT 1, + `ordering` int(11) NOT NULL DEFAULT 0, + `metakey` text, + `metadesc` text NOT NULL, + `access` int(10) unsigned NOT NULL DEFAULT 0, + `hits` int(10) unsigned NOT NULL DEFAULT 0, + `metadata` text NOT NULL, + `featured` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Set if article is featured.', + `language` char(7) NOT NULL COMMENT 'The language code for the article.', + `note` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_state` (`state`), + KEY `idx_catid` (`catid`), + KEY `idx_createdby` (`created_by`), + KEY `idx_featured_catid` (`featured`,`catid`), + KEY `idx_language` (`language`), + KEY `idx_alias` (`alias`(191)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__content_frontpage` +-- + +CREATE TABLE IF NOT EXISTS `#__content_frontpage` ( + `content_id` int(11) NOT NULL DEFAULT 0, + `ordering` int(11) NOT NULL DEFAULT 0, + `featured_up` datetime, + `featured_down` datetime, + PRIMARY KEY (`content_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__content_rating` +-- + +CREATE TABLE IF NOT EXISTS `#__content_rating` ( + `content_id` int(11) NOT NULL DEFAULT 0, + `rating_sum` int(10) unsigned NOT NULL DEFAULT 0, + `rating_count` int(10) unsigned NOT NULL DEFAULT 0, + `lastip` varchar(50) NOT NULL DEFAULT '', + PRIMARY KEY (`content_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_filters` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_filters` ( + `filter_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(255) NOT NULL, + `alias` varchar(255) NOT NULL, + `state` tinyint(1) NOT NULL DEFAULT 1, + `created` datetime NOT NULL, + `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `created_by_alias` varchar(255) NOT NULL DEFAULT '', + `modified` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `map_count` int(10) unsigned NOT NULL DEFAULT 0, + `data` text, + `params` mediumtext, + PRIMARY KEY (`filter_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_links` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_links` ( + `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `url` varchar(255) NOT NULL, + `route` varchar(255) NOT NULL, + `title` varchar(400) DEFAULT NULL, + `description` text, + `indexdate` datetime NOT NULL, + `md5sum` varchar(32) DEFAULT NULL, + `published` tinyint(1) NOT NULL DEFAULT 1, + `state` int(5) NOT NULL DEFAULT 1, + `access` int(5) NOT NULL DEFAULT 0, + `language` char(7) NOT NULL DEFAULT '', + `publish_start_date` datetime, + `publish_end_date` datetime, + `start_date` datetime, + `end_date` datetime, + `list_price` double unsigned NOT NULL DEFAULT 0, + `sale_price` double unsigned NOT NULL DEFAULT 0, + `type_id` int(11) NOT NULL, + `object` mediumblob, + PRIMARY KEY (`link_id`), + KEY `idx_type` (`type_id`), + KEY `idx_title` (`title`(100)), + KEY `idx_md5` (`md5sum`), + KEY `idx_url` (`url`(75)), + KEY `idx_language` (`language`), + KEY `idx_published_list` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`), + KEY `idx_published_sale` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_links_terms` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_links_terms` ( + `link_id` int(10) unsigned NOT NULL, + `term_id` int(10) unsigned NOT NULL, + `weight` float unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`link_id`,`term_id`), + KEY `idx_term_weight` (`term_id`,`weight`), + KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_logging` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_logging` ( + `searchterm` VARCHAR(255) NOT NULL DEFAULT '', + `md5sum` VARCHAR(32) NOT NULL DEFAULT '', + `query` BLOB NOT NULL, + `hits` INT(11) NOT NULL DEFAULT 1, + `results` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`md5sum`), + INDEX `searchterm` (`searchterm`(191)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_taxonomy` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_taxonomy` ( + `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `parent_id` INT(10) UNSIGNED NOT NULL DEFAULT '0', + `lft` INT(11) NOT NULL DEFAULT '0', + `rgt` INT(11) NOT NULL DEFAULT '0', + `level` INT(10) UNSIGNED NOT NULL DEFAULT '0', + `path` VARCHAR(400) NOT NULL DEFAULT '', + `title` VARCHAR(255) NOT NULL DEFAULT '', + `alias` VARCHAR(400) NOT NULL DEFAULT '', + `state` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', + `access` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', + `language` CHAR(7) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + INDEX `idx_state` (`state`), + INDEX `idx_access` (`access`), + INDEX `idx_path` (`path`(100)), + INDEX `idx_left_right` (`lft`, `rgt`), + INDEX `idx_alias` (`alias`(100)), + INDEX `idx_language` (`language`), + INDEX `idx_parent_published` (`parent_id`, `state`, `access`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `#__finder_taxonomy` +-- + +INSERT INTO `#__finder_taxonomy` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `state`, `access`, `language`) VALUES +(1, 0, 0, 1, 0, '', 'ROOT', 'root', 1, 1, '*'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_taxonomy_map` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_taxonomy_map` ( + `link_id` int(10) unsigned NOT NULL, + `node_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`link_id`,`node_id`), + KEY `link_id` (`link_id`), + KEY `node_id` (`node_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_terms` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_terms` ( + `term_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `term` varchar(75) NOT NULL, + `stem` varchar(75) NOT NULL DEFAULT '', + `common` tinyint(1) unsigned NOT NULL DEFAULT 0, + `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0, + `weight` float unsigned NOT NULL DEFAULT 0, + `soundex` varchar(75) NOT NULL DEFAULT '', + `links` int(10) NOT NULL DEFAULT 0, + `language` char(7) NOT NULL DEFAULT '', + PRIMARY KEY (`term_id`), + UNIQUE KEY `idx_term_language` (`term`,`language`), + KEY `idx_stem` (`stem`), + KEY `idx_term_phrase` (`term`,`phrase`), + KEY `idx_stem_phrase` (`stem`,`phrase`), + KEY `idx_soundex_phrase` (`soundex`,`phrase`), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_terms_common` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_terms_common` ( + `term` varchar(75) NOT NULL DEFAULT '', + `language` char(7) NOT NULL DEFAULT '', + `custom` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `idx_term_language` (`term`,`language`), + KEY `idx_lang` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_bin; + +-- +-- Dumping data for table `#__finder_terms_common` +-- + +INSERT INTO `#__finder_terms_common` (`term`, `language`, `custom`) VALUES +('i', 'en', 0), +('me', 'en', 0), +('my', 'en', 0), +('myself', 'en', 0), +('we', 'en', 0), +('our', 'en', 0), +('ours', 'en', 0), +('ourselves', 'en', 0), +('you', 'en', 0), +('your', 'en', 0), +('yours', 'en', 0), +('yourself', 'en', 0), +('yourselves', 'en', 0), +('he', 'en', 0), +('him', 'en', 0), +('his', 'en', 0), +('himself', 'en', 0), +('she', 'en', 0), +('her', 'en', 0), +('hers', 'en', 0), +('herself', 'en', 0), +('it', 'en', 0), +('its', 'en', 0), +('itself', 'en', 0), +('they', 'en', 0), +('them', 'en', 0), +('their', 'en', 0), +('theirs', 'en', 0), +('themselves', 'en', 0), +('what', 'en', 0), +('which', 'en', 0), +('who', 'en', 0), +('whom', 'en', 0), +('this', 'en', 0), +('that', 'en', 0), +('these', 'en', 0), +('those', 'en', 0), +('am', 'en', 0), +('is', 'en', 0), +('are', 'en', 0), +('was', 'en', 0), +('were', 'en', 0), +('be', 'en', 0), +('been', 'en', 0), +('being', 'en', 0), +('have', 'en', 0), +('has', 'en', 0), +('had', 'en', 0), +('having', 'en', 0), +('do', 'en', 0), +('does', 'en', 0), +('did', 'en', 0), +('doing', 'en', 0), +('would', 'en', 0), +('should', 'en', 0), +('could', 'en', 0), +('ought', 'en', 0), +('i\'m', 'en', 0), +('you\'re', 'en', 0), +('he\'s', 'en', 0), +('she\'s', 'en', 0), +('it\'s', 'en', 0), +('we\'re', 'en', 0), +('they\'re', 'en', 0), +('i\'ve', 'en', 0), +('you\'ve', 'en', 0), +('we\'ve', 'en', 0), +('they\'ve', 'en', 0), +('i\'d', 'en', 0), +('you\'d', 'en', 0), +('he\'d', 'en', 0), +('she\'d', 'en', 0), +('we\'d', 'en', 0), +('they\'d', 'en', 0), +('i\'ll', 'en', 0), +('you\'ll', 'en', 0), +('he\'ll', 'en', 0), +('she\'ll', 'en', 0), +('we\'ll', 'en', 0), +('they\'ll', 'en', 0), +('isn\'t', 'en', 0), +('aren\'t', 'en', 0), +('wasn\'t', 'en', 0), +('weren\'t', 'en', 0), +('hasn\'t', 'en', 0), +('haven\'t', 'en', 0), +('hadn\'t', 'en', 0), +('doesn\'t', 'en', 0), +('don\'t', 'en', 0), +('didn\'t', 'en', 0), +('won\'t', 'en', 0), +('wouldn\'t', 'en', 0), +('shan\'t', 'en', 0), +('shouldn\'t', 'en', 0), +('can\'t', 'en', 0), +('cannot', 'en', 0), +('couldn\'t', 'en', 0), +('mustn\'t', 'en', 0), +('let\'s', 'en', 0), +('that\'s', 'en', 0), +('who\'s', 'en', 0), +('what\'s', 'en', 0), +('here\'s', 'en', 0), +('there\'s', 'en', 0), +('when\'s', 'en', 0), +('where\'s', 'en', 0), +('why\'s', 'en', 0), +('how\'s', 'en', 0), +('a', 'en', 0), +('an', 'en', 0), +('the', 'en', 0), +('and', 'en', 0), +('but', 'en', 0), +('if', 'en', 0), +('or', 'en', 0), +('because', 'en', 0), +('as', 'en', 0), +('until', 'en', 0), +('while', 'en', 0), +('of', 'en', 0), +('at', 'en', 0), +('by', 'en', 0), +('for', 'en', 0), +('with', 'en', 0), +('about', 'en', 0), +('against', 'en', 0), +('between', 'en', 0), +('into', 'en', 0), +('through', 'en', 0), +('during', 'en', 0), +('before', 'en', 0), +('after', 'en', 0), +('above', 'en', 0), +('below', 'en', 0), +('to', 'en', 0), +('from', 'en', 0), +('up', 'en', 0), +('down', 'en', 0), +('in', 'en', 0), +('out', 'en', 0), +('on', 'en', 0), +('off', 'en', 0), +('over', 'en', 0), +('under', 'en', 0), +('again', 'en', 0), +('further', 'en', 0), +('then', 'en', 0), +('once', 'en', 0), +('here', 'en', 0), +('there', 'en', 0), +('when', 'en', 0), +('where', 'en', 0), +('why', 'en', 0), +('how', 'en', 0), +('all', 'en', 0), +('any', 'en', 0), +('both', 'en', 0), +('each', 'en', 0), +('few', 'en', 0), +('more', 'en', 0), +('most', 'en', 0), +('other', 'en', 0), +('some', 'en', 0), +('such', 'en', 0), +('no', 'en', 0), +('nor', 'en', 0), +('not', 'en', 0), +('only', 'en', 0), +('own', 'en', 0), +('same', 'en', 0), +('so', 'en', 0), +('than', 'en', 0), +('too', 'en', 0), +('very', 'en', 0); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_tokens` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_tokens` ( + `term` varchar(75) NOT NULL, + `stem` varchar(75) NOT NULL DEFAULT '', + `common` tinyint(1) unsigned NOT NULL DEFAULT 0, + `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0, + `weight` float unsigned NOT NULL DEFAULT 1, + `context` tinyint(1) unsigned NOT NULL DEFAULT 2, + `language` char(7) NOT NULL DEFAULT '', + KEY `idx_word` (`term`), + KEY `idx_stem` (`stem`), + KEY `idx_context` (`context`), + KEY `idx_language` (`language`) +) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_tokens_aggregate` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` ( + `term_id` int(10) unsigned NOT NULL, + `term` varchar(75) NOT NULL, + `stem` varchar(75) NOT NULL DEFAULT '', + `common` tinyint(1) unsigned NOT NULL DEFAULT 0, + `phrase` tinyint(1) unsigned NOT NULL DEFAULT 0, + `term_weight` float unsigned NOT NULL DEFAULT 0, + `context` tinyint(1) unsigned NOT NULL DEFAULT 2, + `context_weight` float unsigned NOT NULL DEFAULT 0, + `total_weight` float unsigned NOT NULL DEFAULT 0, + `language` char(7) NOT NULL DEFAULT '', + KEY `token` (`term`), + KEY `keyword_id` (`term_id`) +) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__finder_types` +-- + +CREATE TABLE IF NOT EXISTS `#__finder_types` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(100) NOT NULL, + `mime` varchar(100) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + UNIQUE KEY `title` (`title`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__messages` +-- + +CREATE TABLE IF NOT EXISTS `#__messages` ( + `message_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id_from` int(10) unsigned NOT NULL DEFAULT 0, + `user_id_to` int(10) unsigned NOT NULL DEFAULT 0, + `folder_id` tinyint(3) unsigned NOT NULL DEFAULT 0, + `date_time` datetime NOT NULL, + `state` tinyint(1) NOT NULL DEFAULT 0, + `priority` tinyint(1) unsigned NOT NULL DEFAULT 0, + `subject` varchar(255) NOT NULL DEFAULT '', + `message` text NOT NULL, + PRIMARY KEY (`message_id`), + KEY `useridto_state` (`user_id_to`,`state`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__messages_cfg` +-- + +CREATE TABLE IF NOT EXISTS `#__messages_cfg` ( + `user_id` int(10) unsigned NOT NULL DEFAULT 0, + `cfg_name` varchar(100) NOT NULL DEFAULT '', + `cfg_value` varchar(255) NOT NULL DEFAULT '', + UNIQUE KEY `idx_user_var_name` (`user_id`,`cfg_name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__newsfeeds` +-- + +CREATE TABLE IF NOT EXISTS `#__newsfeeds` ( + `catid` int(11) NOT NULL DEFAULT 0, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL DEFAULT '', + `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', + `link` varchar(2048) NOT NULL DEFAULT '', + `published` tinyint(1) NOT NULL DEFAULT 0, + `numarticles` int(10) unsigned NOT NULL DEFAULT 1, + `cache_time` int(10) unsigned NOT NULL DEFAULT 3600, + `checked_out` int(10) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `ordering` int(11) NOT NULL DEFAULT 0, + `rtl` tinyint(4) NOT NULL DEFAULT 0, + `access` int(10) unsigned NOT NULL DEFAULT 0, + `language` char(7) NOT NULL DEFAULT '', + `params` text NOT NULL, + `created` datetime NOT NULL, + `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `created_by_alias` varchar(255) NOT NULL DEFAULT '', + `modified` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `metakey` text, + `metadesc` text NOT NULL, + `metadata` text NOT NULL, + `publish_up` datetime, + `publish_down` datetime, + `description` text NOT NULL, + `version` int(10) unsigned NOT NULL DEFAULT 1, + `hits` int(10) unsigned NOT NULL DEFAULT 0, + `images` text NOT NULL, + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_state` (`published`), + KEY `idx_catid` (`catid`), + KEY `idx_createdby` (`created_by`), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__privacy_requests` +-- + +CREATE TABLE IF NOT EXISTS `#__privacy_requests` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `email` varchar(100) NOT NULL DEFAULT '', + `requested_at` datetime NOT NULL, + `status` tinyint(4) NOT NULL DEFAULT 0, + `request_type` varchar(25) NOT NULL DEFAULT '', + `confirm_token` varchar(100) NOT NULL DEFAULT '', + `confirm_token_created_at` datetime, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__privacy_consents` +-- + +CREATE TABLE IF NOT EXISTS `#__privacy_consents` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL DEFAULT 0, + `state` INT(10) NOT NULL DEFAULT 1, + `created` datetime NOT NULL, + `subject` varchar(255) NOT NULL DEFAULT '', + `body` text NOT NULL, + `remind` tinyint(4) NOT NULL DEFAULT 0, + `token` varchar(100) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `idx_user_id` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__redirect_links` +-- + +CREATE TABLE IF NOT EXISTS `#__redirect_links` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_url` varchar(2048) NOT NULL, + `new_url` varchar(2048), + `referer` varchar(2048) NOT NULL, + `comment` varchar(255) NOT NULL DEFAULT '', + `hits` int(10) unsigned NOT NULL DEFAULT 0, + `published` tinyint(4) NOT NULL, + `created_date` datetime NOT NULL, + `modified_date` datetime NOT NULL, + `header` smallint(3) NOT NULL DEFAULT 301, + PRIMARY KEY (`id`), + KEY `idx_old_url` (`old_url`(100)), + KEY `idx_link_modifed` (`modified_date`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__action_logs` +-- + +CREATE TABLE IF NOT EXISTS `#__action_logs` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `message_language_key` varchar(255) NOT NULL DEFAULT '', + `message` text NOT NULL, + `log_date` datetime NOT NULL, + `extension` varchar(50) NOT NULL DEFAULT '', + `user_id` int(11) NOT NULL DEFAULT 0, + `item_id` int(11) NOT NULL DEFAULT 0, + `ip_address` VARCHAR(40) NOT NULL DEFAULT '0.0.0.0', + PRIMARY KEY (`id`), + KEY `idx_user_id` (`user_id`), + KEY `idx_user_id_logdate` (`user_id`, `log_date`), + KEY `idx_user_id_extension` (`user_id`, `extension`), + KEY `idx_extension_item_id` (`extension`, `item_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__action_logs_extensions` +-- + +CREATE TABLE IF NOT EXISTS `#__action_logs_extensions` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `extension` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +INSERT INTO `#__action_logs_extensions` (`id`, `extension`) VALUES +(1, 'com_banners'), +(2, 'com_cache'), +(3, 'com_categories'), +(4, 'com_config'), +(5, 'com_contact'), +(6, 'com_content'), +(7, 'com_installer'), +(8, 'com_media'), +(9, 'com_menus'), +(10, 'com_messages'), +(11, 'com_modules'), +(12, 'com_newsfeeds'), +(13, 'com_plugins'), +(14, 'com_redirect'), +(15, 'com_tags'), +(16, 'com_templates'), +(17, 'com_users'), +(18, 'com_checkin'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__action_log_config` +-- + +CREATE TABLE IF NOT EXISTS `#__action_log_config` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `type_title` varchar(255) NOT NULL DEFAULT '', + `type_alias` varchar(255) NOT NULL DEFAULT '', + `id_holder` varchar(255), + `title_holder` varchar(255), + `table_name` varchar(255), + `text_prefix` varchar(255), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +INSERT INTO `#__action_log_config` (`id`, `type_title`, `type_alias`, `id_holder`, `title_holder`, `table_name`, `text_prefix`) VALUES +(1, 'article', 'com_content.article', 'id' ,'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), +(2, 'article', 'com_content.form', 'id', 'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), +(3, 'banner', 'com_banners.banner', 'id' ,'name' , '#__banners', 'PLG_ACTIONLOG_JOOMLA'), +(4, 'user_note', 'com_users.note', 'id', 'subject' ,'#__user_notes', 'PLG_ACTIONLOG_JOOMLA'), +(5, 'media', 'com_media.file', '' , 'name' , '', 'PLG_ACTIONLOG_JOOMLA'), +(6, 'category', 'com_categories.category', 'id' , 'title' , '#__categories', 'PLG_ACTIONLOG_JOOMLA'), +(7, 'menu', 'com_menus.menu', 'id' ,'title' , '#__menu_types', 'PLG_ACTIONLOG_JOOMLA'), +(8, 'menu_item', 'com_menus.item', 'id' , 'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'), +(9, 'newsfeed', 'com_newsfeeds.newsfeed', 'id' ,'name' , '#__newsfeeds', 'PLG_ACTIONLOG_JOOMLA'), +(10, 'link', 'com_redirect.link', 'id', 'old_url' , '#__redirect_links', 'PLG_ACTIONLOG_JOOMLA'), +(11, 'tag', 'com_tags.tag', 'id', 'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'), +(12, 'style', 'com_templates.style', 'id' , 'title' , '#__template_styles', 'PLG_ACTIONLOG_JOOMLA'), +(13, 'plugin', 'com_plugins.plugin', 'extension_id' , 'name' , '#__extensions', 'PLG_ACTIONLOG_JOOMLA'), +(14, 'component_config', 'com_config.component', 'extension_id' , 'name', '', 'PLG_ACTIONLOG_JOOMLA'), +(15, 'contact', 'com_contact.contact', 'id', 'name', '#__contact_details', 'PLG_ACTIONLOG_JOOMLA'), +(16, 'module', 'com_modules.module', 'id' ,'title', '#__modules', 'PLG_ACTIONLOG_JOOMLA'), +(17, 'access_level', 'com_users.level', 'id' , 'title', '#__viewlevels', 'PLG_ACTIONLOG_JOOMLA'), +(18, 'banner_client', 'com_banners.client', 'id', 'name', '#__banner_clients', 'PLG_ACTIONLOG_JOOMLA'), +(19, 'application_config', 'com_config.application', '', 'name', '', 'PLG_ACTIONLOG_JOOMLA'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__action_logs_users` +-- + +CREATE TABLE IF NOT EXISTS `#__action_logs_users` ( + `user_id` int(11) UNSIGNED NOT NULL, + `notify` tinyint(1) UNSIGNED NOT NULL, + `extensions` text NOT NULL, + PRIMARY KEY (`user_id`), + KEY `idx_notify` (`notify`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; diff --git a/installation/sql/mysql/supports.sql b/installation/sql/mysql/supports.sql new file mode 100644 index 0000000000000..a1f658978d3e1 --- /dev/null +++ b/installation/sql/mysql/supports.sql @@ -0,0 +1,430 @@ +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__associations` +-- + +CREATE TABLE IF NOT EXISTS `#__associations` ( + `id` int(11) NOT NULL COMMENT 'A reference to the associated item.', + `context` varchar(50) NOT NULL COMMENT 'The context of the associated item.', + `key` char(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.', + PRIMARY KEY (`context`,`id`), + KEY `idx_key` (`key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__categories` +-- + +CREATE TABLE IF NOT EXISTS `#__categories` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `parent_id` int(10) unsigned NOT NULL DEFAULT 0, + `lft` int(11) NOT NULL DEFAULT 0, + `rgt` int(11) NOT NULL DEFAULT 0, + `level` int(10) unsigned NOT NULL DEFAULT 0, + `path` varchar(400) NOT NULL DEFAULT '', + `extension` varchar(50) NOT NULL DEFAULT '', + `title` varchar(255) NOT NULL DEFAULT '', + `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', + `note` varchar(255) NOT NULL DEFAULT '', + `description` mediumtext, + `published` tinyint(1) NOT NULL DEFAULT 0, + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `access` int(10) unsigned NOT NULL DEFAULT 0, + `params` text, + `metadesc` varchar(1024) NOT NULL DEFAULT '' COMMENT 'The meta description for the page.', + `metakey` varchar(1024) NOT NULL DEFAULT '' COMMENT 'The keywords for the page.', + `metadata` varchar(2048) NOT NULL DEFAULT '' COMMENT 'JSON encoded metadata properties.', + `created_user_id` int(10) unsigned NOT NULL DEFAULT 0, + `created_time` datetime NOT NULL, + `modified_user_id` int(10) unsigned NOT NULL DEFAULT 0, + `modified_time` datetime NOT NULL, + `hits` int(10) unsigned NOT NULL DEFAULT 0, + `language` char(7) NOT NULL DEFAULT '', + `version` int(10) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `cat_idx` (`extension`,`published`,`access`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_path` (`path`(100)), + KEY `idx_left_right` (`lft`,`rgt`), + KEY `idx_alias` (`alias`(100)), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `#__categories` +-- + +INSERT INTO `#__categories` (`id`, `asset_id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `extension`, `title`, `alias`, `note`, `description`, `published`, `checked_out`, `checked_out_time`, `access`, `params`, `metadesc`, `metakey`, `metadata`, `created_user_id`, `created_time`, `modified_user_id`, `modified_time`, `hits`, `language`, `version`) VALUES +(1, 0, 0, 0, 11, 0, '', 'system', 'ROOT', 'root', '', '', 1, 0, NULL, 1, '{}', '', '', '{}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), +(2, 27, 1, 1, 2, 1, 'uncategorised', 'com_content', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":"","workflow_id":"use_default"}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), +(3, 28, 1, 3, 4, 1, 'uncategorised', 'com_banners', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), +(4, 29, 1, 5, 6, 1, 'uncategorised', 'com_contact', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), +(5, 30, 1, 7, 8, 1, 'uncategorised', 'com_newsfeeds', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1), +(7, 32, 1, 9, 10, 1, 'uncategorised', 'com_users', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 0, '*', 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__content_types` +-- + +CREATE TABLE IF NOT EXISTS `#__content_types` ( + `type_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `type_title` varchar(255) NOT NULL DEFAULT '', + `type_alias` varchar(400) NOT NULL DEFAULT '', + `table` varchar(2048) NOT NULL DEFAULT '', + `rules` text NOT NULL, + `field_mappings` text NOT NULL, + `router` varchar(255) NOT NULL DEFAULT '', + `content_history_options` varchar(5120) COMMENT 'JSON string for com_contenthistory options', + PRIMARY KEY (`type_id`), + KEY `idx_alias` (`type_alias`(100)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=10000; + +-- +-- Dumping data for table `#__content_types` +-- + +INSERT INTO `#__content_types` (`type_id`, `type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) VALUES +(1, 'Article', 'com_content.article', '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}}', 'ContentHelperRoute::getArticleRoute', '{"formFile":"administrator\\/components\\/com_content\\/forms\\/article.xml", "hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits", "ordering"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +(2, 'Contact', 'com_contact.contact', '{"special":{"dbtable":"#__contact_details","key":"id","type":"ContactTable","prefix":"Joomla\\\\Component\\\\Contact\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}', 'ContactHelperRoute::getContactRoute', '{"formFile":"administrator\\/components\\/com_contact\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[ {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ] }'), +(3, 'Newsfeed', 'com_newsfeeds.newsfeed', '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"NewsfeedTable","prefix":"Joomla\\\\Component\\\\Newsfeeds\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}', 'NewsfeedsHelperRoute::getNewsfeedRoute', '{"formFile":"administrator\\/components\\/com_newsfeeds\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +(4, 'User', 'com_users.user', '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerDate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "asset_id":"null"}, "special":{}}', '', ''), +(5, 'Article Category', 'com_content.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContentHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(6, 'Contact Category', 'com_contact.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContactHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(7, 'Newsfeeds Category', 'com_newsfeeds.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'NewsfeedsHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(8, 'Tag', 'com_tags.tag', '{"special":{"dbtable":"#__tags","key":"tag_id","type":"TagTable","prefix":"Joomla\\\\Component\\\\Tags\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "asset_id":"null"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}', 'TagsHelperRoute::getTagRoute', '{"formFile":"administrator\\/components\\/com_tags\\/forms\\/tag.xml", "hideFields":["checked_out","checked_out_time","version", "lft", "rgt", "level", "path", "urls", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), +(9, 'Banner', 'com_banners.banner', '{"special":{"dbtable":"#__banners","key":"id","type":"BannerTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"imptotal":"imptotal", "impmade":"impmade", "clicks":"clicks", "clickurl":"clickurl", "custombannercode":"custombannercode", "cid":"cid", "purchase_type":"purchase_type", "track_impressions":"track_impressions", "track_clicks":"track_clicks"}}', '','{"formFile":"administrator\\/components\\/com_banners\\/forms\\/banner.xml", "hideFields":["checked_out","checked_out_time","version", "reset"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "imptotal", "impmade", "reset"], "convertToInt":["publish_up", "publish_down", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +(10, 'Banners Category', 'com_banners.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}','','{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(11, 'Banner Client', 'com_banners.client', '{"special":{"dbtable":"#__banner_clients","key":"id","type":"ClientTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_banners\\/forms\\/client.xml", "hideFields":["checked_out","checked_out_time"], "ignoreChanges":["checked_out", "checked_out_time"], "convertToInt":[], "displayLookup":[]}'), +(12, 'User Notes', 'com_users.note', '{"special":{"dbtable":"#__user_notes","key":"id","type":"NoteTable","prefix":"Joomla\\\\Component\\\\Users\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_users\\/forms\\/note.xml", "hideFields":["checked_out","checked_out_time", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time"], "convertToInt":["publish_up", "publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), +(13, 'User Notes Category', 'com_users.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', '', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__contentitem_tag_map` +-- + +CREATE TABLE IF NOT EXISTS `#__contentitem_tag_map` ( + `type_alias` varchar(255) NOT NULL DEFAULT '', + `core_content_id` int(10) unsigned NOT NULL COMMENT 'PK from the core content table', + `content_item_id` int(11) NOT NULL COMMENT 'PK from the content type table', + `tag_id` int(10) unsigned NOT NULL COMMENT 'PK from the tag table', + `tag_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of most recent save for this tag-item', + `type_id` mediumint(8) NOT NULL COMMENT 'PK from the content_type table', + UNIQUE KEY `uc_ItemnameTagid` (`type_id`,`content_item_id`,`tag_id`), + KEY `idx_tag_type` (`tag_id`,`type_id`), + KEY `idx_date_id` (`tag_date`,`tag_id`), + KEY `idx_core_content_id` (`core_content_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Maps items from content tables to tags'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__csp` +-- + +CREATE TABLE IF NOT EXISTS `#__csp` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `document_uri` varchar(500) NOT NULL DEFAULT '', + `blocked_uri` varchar(500) NOT NULL DEFAULT '', + `directive` varchar(500) NOT NULL DEFAULT '', + `client` varchar(500) NOT NULL DEFAULT '', + `created` datetime NOT NULL, + `modified` datetime NOT NULL, + `published` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__fields` +-- + +CREATE TABLE IF NOT EXISTS `#__fields` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `asset_id` int(10) unsigned NOT NULL DEFAULT 0, + `context` varchar(255) NOT NULL DEFAULT '', + `group_id` int(10) unsigned NOT NULL DEFAULT 0, + `title` varchar(255) NOT NULL DEFAULT '', + `name` varchar(255) NOT NULL DEFAULT '', + `label` varchar(255) NOT NULL DEFAULT '', + `default_value` text, + `type` varchar(255) NOT NULL DEFAULT 'text', + `note` varchar(255) NOT NULL DEFAULT '', + `description` text NOT NULL, + `state` tinyint(1) NOT NULL DEFAULT 0, + `required` tinyint(1) NOT NULL DEFAULT 0, + `checked_out` int(11) NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `ordering` int(11) NOT NULL DEFAULT 0, + `params` text NOT NULL, + `fieldparams` text NOT NULL, + `language` char(7) NOT NULL DEFAULT '', + `created_time` datetime NOT NULL, + `created_user_id` int(10) unsigned NOT NULL DEFAULT 0, + `modified_time` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `access` int(11) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_state` (`state`), + KEY `idx_created_user_id` (`created_user_id`), + KEY `idx_access` (`access`), + KEY `idx_context` (`context`(191)), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__fields_categories` +-- + +CREATE TABLE IF NOT EXISTS `#__fields_categories` ( + `field_id` int(11) NOT NULL DEFAULT 0, + `category_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`field_id`,`category_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__fields_groups` +-- + +CREATE TABLE IF NOT EXISTS `#__fields_groups` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `asset_id` int(10) unsigned NOT NULL DEFAULT 0, + `context` varchar(255) NOT NULL DEFAULT '', + `title` varchar(255) NOT NULL DEFAULT '', + `note` varchar(255) NOT NULL DEFAULT '', + `description` text NOT NULL, + `state` tinyint(1) NOT NULL DEFAULT 0, + `checked_out` int(11) NOT NULL DEFAULT 0, + `checked_out_time` datetime, + `ordering` int(11) NOT NULL DEFAULT 0, + `params` text NOT NULL, + `language` char(7) NOT NULL DEFAULT '', + `created` datetime NOT NULL, + `created_by` int(10) unsigned NOT NULL DEFAULT 0, + `modified` datetime NOT NULL, + `modified_by` int(10) unsigned NOT NULL DEFAULT 0, + `access` int(11) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_state` (`state`), + KEY `idx_created_by` (`created_by`), + KEY `idx_access` (`access`), + KEY `idx_context` (`context`(191)), + KEY `idx_language` (`language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__fields_values` +-- + +CREATE TABLE IF NOT EXISTS `#__fields_values` ( + `field_id` int(10) unsigned NOT NULL, + `item_id` varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.', + `value` text, + KEY `idx_field_id` (`field_id`), + KEY `idx_item_id` (`item_id`(191)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__overrider` +-- + +CREATE TABLE IF NOT EXISTS `#__overrider` ( + `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', + `constant` varchar(255) NOT NULL, + `string` text NOT NULL, + `file` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__postinstall_messages` +-- + +CREATE TABLE IF NOT EXISTS `#__postinstall_messages` ( + `postinstall_message_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `extension_id` bigint(20) NOT NULL DEFAULT 700 COMMENT 'FK to #__extensions', + `title_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for the title', + `description_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for description', + `action_key` varchar(255) NOT NULL DEFAULT '', + `language_extension` varchar(255) NOT NULL DEFAULT 'com_postinstall' COMMENT 'Extension holding lang keys', + `language_client_id` tinyint(3) NOT NULL DEFAULT 1, + `type` varchar(10) NOT NULL DEFAULT 'link' COMMENT 'Message type - message, link, action', + `action_file` varchar(255) DEFAULT '' COMMENT 'RAD URI to the PHP file containing action method', + `action` varchar(255) DEFAULT '' COMMENT 'Action method name or URL', + `condition_file` varchar(255) DEFAULT NULL COMMENT 'RAD URI to file holding display condition method', + `condition_method` varchar(255) DEFAULT NULL COMMENT 'Display condition method, must return boolean', + `version_introduced` varchar(50) NOT NULL DEFAULT '3.2.0' COMMENT 'Version when this message was introduced', + `enabled` tinyint(3) NOT NULL DEFAULT 1, + PRIMARY KEY (`postinstall_message_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `#__postinstall_messages` +-- + +INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) +SELECT `extension_id`, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION', 'plg_twofactorauth_totp', 1, 'action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_condition', '3.2.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; +INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) +SELECT `extension_id`, 'COM_CPANEL_WELCOME_BEGINNERS_TITLE', 'COM_CPANEL_WELCOME_BEGINNERS_MESSAGE', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.2.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; +INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) +SELECT `extension_id`, 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE', 'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/statscollection.php', 'admin_postinstall_statscollection_condition', '3.5.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; +INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) +SELECT `extension_id`, 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION', 'plg_system_updatenotification', 1, 'action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_condition', '3.6.3', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; +INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) +SELECT `extension_id`, 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheaders', 1, 'action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_condition', '4.0.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__ucm_base` +-- + +CREATE TABLE IF NOT EXISTS `#__ucm_base` ( + `ucm_id` int(10) unsigned NOT NULL, + `ucm_item_id` int(10) NOT NULL, + `ucm_type_id` int(11) NOT NULL, + `ucm_language_id` int(11) NOT NULL, + PRIMARY KEY (`ucm_id`), + KEY `idx_ucm_item_id` (`ucm_item_id`), + KEY `idx_ucm_type_id` (`ucm_type_id`), + KEY `idx_ucm_language_id` (`ucm_language_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__ucm_content` +-- + +CREATE TABLE IF NOT EXISTS `#__ucm_content` ( + `core_content_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `core_type_alias` varchar(400) NOT NULL DEFAULT '' COMMENT 'FK to the content types table', + `core_title` varchar(400) NOT NULL DEFAULT '', + `core_alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', + `core_body` mediumtext, + `core_state` tinyint(1) NOT NULL DEFAULT 0, + `core_checked_out_time` datetime, + `core_checked_out_user_id` int(10) unsigned NOT NULL DEFAULT 0, + `core_access` int(10) unsigned NOT NULL DEFAULT 0, + `core_params` text, + `core_featured` tinyint(4) unsigned NOT NULL DEFAULT 0, + `core_metadata` varchar(2048) NOT NULL DEFAULT '' COMMENT 'JSON encoded metadata properties.', + `core_created_user_id` int(10) unsigned NOT NULL DEFAULT 0, + `core_created_by_alias` varchar(255) NOT NULL DEFAULT '', + `core_created_time` datetime NOT NULL, + `core_modified_user_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Most recent user that modified', + `core_modified_time` datetime NOT NULL, + `core_language` char(7) NOT NULL DEFAULT '', + `core_publish_up` datetime, + `core_publish_down` datetime, + `core_content_item_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'ID from the individual type table', + `asset_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `core_images` text, + `core_urls` text, + `core_hits` int(10) unsigned NOT NULL DEFAULT 0, + `core_version` int(10) unsigned NOT NULL DEFAULT 1, + `core_ordering` int(11) NOT NULL DEFAULT 0, + `core_metakey` text, + `core_metadesc` text, + `core_catid` int(10) unsigned NOT NULL DEFAULT 0, + `core_type_id` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`core_content_id`), + KEY `tag_idx` (`core_state`,`core_access`), + KEY `idx_access` (`core_access`), + KEY `idx_alias` (`core_alias`(100)), + KEY `idx_language` (`core_language`), + KEY `idx_title` (`core_title`(100)), + KEY `idx_modified_time` (`core_modified_time`), + KEY `idx_created_time` (`core_created_time`), + KEY `idx_content_type` (`core_type_alias`(100)), + KEY `idx_core_modified_user_id` (`core_modified_user_id`), + KEY `idx_core_checked_out_user_id` (`core_checked_out_user_id`), + KEY `idx_core_created_user_id` (`core_created_user_id`), + KEY `idx_core_type_id` (`core_type_id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Contains core content data in name spaced fields'; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__ucm_history` +-- + +CREATE TABLE IF NOT EXISTS `#__ucm_history` ( + `version_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ucm_item_id` int(10) unsigned NOT NULL, + `ucm_type_id` int(10) unsigned NOT NULL, + `version_note` varchar(255) NOT NULL DEFAULT '' COMMENT 'Optional version name', + `save_date` datetime NOT NULL, + `editor_user_id` int(10) unsigned NOT NULL DEFAULT 0, + `character_count` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Number of characters in this version.', + `sha1_hash` varchar(50) NOT NULL DEFAULT '' COMMENT 'SHA1 hash of the version_data column.', + `version_data` mediumtext NOT NULL COMMENT 'json-encoded string of version data', + `keep_forever` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=auto delete; 1=keep', + PRIMARY KEY (`version_id`), + KEY `idx_ucm_item_id` (`ucm_type_id`,`ucm_item_id`), + KEY `idx_save_date` (`save_date`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__webauthn_credentials#__webauthn_credentials` +-- + +CREATE TABLE IF NOT EXISTS `#__webauthn_credentials` ( + `id` VARCHAR(1000) NOT NULL COMMENT 'Credential ID', + `user_id` VARCHAR(128) NOT NULL COMMENT 'User handle', + `label` VARCHAR(190) NOT NULL COMMENT 'Human readable label', + `credential` MEDIUMTEXT NOT NULL COMMENT 'Credential source data, JSON format', + PRIMARY KEY (`id`(100)), + INDEX (`user_id`(100)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `#__mail_templates` +-- + +CREATE TABLE IF NOT EXISTS `#__mail_templates` ( + `template_id` VARCHAR(127) NOT NULL DEFAULT '', + `language` char(7) NOT NULL DEFAULT '', + `subject` VARCHAR(255) NOT NULL DEFAULT '', + `body` TEXT NOT NULL, + `htmlbody` TEXT NOT NULL, + `attachments` TEXT NOT NULL, + `params` TEXT NOT NULL, + PRIMARY KEY (`template_id`, `language`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `#__mail_templates` +-- + +INSERT INTO `#__mail_templates` (`template_id`, `language`, `subject`, `body`, `htmlbody`, `attachments`, `params`) VALUES +('com_config.test_mail', '', 'COM_CONFIG_SENDMAIL_SUBJECT', 'COM_CONFIG_SENDMAIL_BODY', '', '', '{"tags":["sitename","method"]}'); diff --git a/installation/sql/postgresql/joomla.sql b/installation/sql/postgresql/base.sql similarity index 56% rename from installation/sql/postgresql/joomla.sql rename to installation/sql/postgresql/base.sql index 949168c847efb..675ed09f0e47a 100644 --- a/installation/sql/postgresql/joomla.sql +++ b/installation/sql/postgresql/base.sql @@ -1,7 +1,3 @@ --- --- Database: `joomla` --- - -- -- Table structure for table `#__assets` -- @@ -115,387 +111,6 @@ INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "titl SELECT setval('#__assets_id_seq', 84, false); --- --- Table structure for table `#__associations` --- - -CREATE TABLE IF NOT EXISTS "#__associations" ( - "id" int NOT NULL, - "context" varchar(50) NOT NULL, - "key" char(32) NOT NULL, - CONSTRAINT "#__associations_idx_context_id" PRIMARY KEY ("context", "id") -); -CREATE INDEX "#__associations_idx_key" ON "#__associations" ("key"); - -COMMENT ON COLUMN "#__associations"."id" IS 'A reference to the associated item.'; -COMMENT ON COLUMN "#__associations"."context" IS 'The context of the associated item.'; -COMMENT ON COLUMN "#__associations"."key" IS 'The key for the association computed from an md5 on associated ids.'; - --- --- Table structure for table `#__banners` --- - -CREATE TABLE IF NOT EXISTS "#__banners" ( - "id" serial NOT NULL, - "cid" bigint DEFAULT 0 NOT NULL, - "type" bigint DEFAULT 0 NOT NULL, - "name" varchar(255) DEFAULT '' NOT NULL, - "alias" varchar(255) DEFAULT '' NOT NULL, - "imptotal" bigint DEFAULT 0 NOT NULL, - "impmade" bigint DEFAULT 0 NOT NULL, - "clicks" bigint DEFAULT 0 NOT NULL, - "clickurl" varchar(200) DEFAULT '' NOT NULL, - "state" smallint DEFAULT 0 NOT NULL, - "catid" bigint DEFAULT 0 NOT NULL, - "description" text NOT NULL, - "custombannercode" varchar(2048) NOT NULL, - "sticky" smallint DEFAULT 0 NOT NULL, - "ordering" bigint DEFAULT 0 NOT NULL, - "metakey" text, - "params" text NOT NULL, - "own_prefix" smallint DEFAULT 0 NOT NULL, - "metakey_prefix" varchar(255) DEFAULT '' NOT NULL, - "purchase_type" smallint DEFAULT -1 NOT NULL, - "track_clicks" smallint DEFAULT -1 NOT NULL, - "track_impressions" smallint DEFAULT -1 NOT NULL, - "checked_out" bigint DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "publish_up" timestamp without time zone, - "publish_down" timestamp without time zone, - "reset" timestamp without time zone, - "created" timestamp without time zone NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "created_by" bigint DEFAULT 0 NOT NULL, - "created_by_alias" varchar(255) DEFAULT '' NOT NULL, - "modified" timestamp without time zone NOT NULL, - "modified_by" bigint DEFAULT 0 NOT NULL, - "version" bigint DEFAULT 1 NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__banners_idx_state" ON "#__banners" ("state"); -CREATE INDEX "#__banners_idx_own_prefix" ON "#__banners" ("own_prefix"); -CREATE INDEX "#__banners_idx_metakey_prefix" ON "#__banners" ("metakey_prefix"); -CREATE INDEX "#__banners_idx_banner_catid" ON "#__banners" ("catid"); -CREATE INDEX "#__banners_idx_language" ON "#__banners" ("language"); - --- --- Table structure for table `#__banner_clients` --- - -CREATE TABLE IF NOT EXISTS "#__banner_clients" ( - "id" serial NOT NULL, - "name" varchar(255) DEFAULT '' NOT NULL, - "contact" varchar(255) DEFAULT '' NOT NULL, - "email" varchar(255) DEFAULT '' NOT NULL, - "extrainfo" text NOT NULL, - "state" smallint DEFAULT 0 NOT NULL, - "checked_out" bigint DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "metakey" text, - "own_prefix" smallint DEFAULT 0 NOT NULL, - "metakey_prefix" varchar(255) DEFAULT '' NOT NULL, - "purchase_type" smallint DEFAULT -1 NOT NULL, - "track_clicks" smallint DEFAULT -1 NOT NULL, - "track_impressions" smallint DEFAULT -1 NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__banner_clients_idx_own_prefix" ON "#__banner_clients" ("own_prefix"); -CREATE INDEX "#__banner_clients_idx_metakey_prefix" ON "#__banner_clients" ("metakey_prefix"); - --- --- Table structure for table `#__banner_tracks` --- - -CREATE TABLE IF NOT EXISTS "#__banner_tracks" ( - "track_date" timestamp without time zone NOT NULL, - "track_type" bigint NOT NULL, - "banner_id" bigint NOT NULL, - "count" bigint DEFAULT 0 NOT NULL, - PRIMARY KEY ("track_date", "track_type", "banner_id") -); -CREATE INDEX "#__banner_tracks_idx_track_date" ON "#__banner_tracks" ("track_date"); -CREATE INDEX "#__banner_tracks_idx_track_type" ON "#__banner_tracks" ("track_type"); -CREATE INDEX "#__banner_tracks_idx_banner_id" ON "#__banner_tracks" ("banner_id"); - --- --- Table structure for table `#__categories` --- - -CREATE TABLE IF NOT EXISTS "#__categories" ( - "id" serial NOT NULL, - "asset_id" bigint DEFAULT 0 NOT NULL, - "parent_id" integer DEFAULT 0 NOT NULL, - "lft" bigint DEFAULT 0 NOT NULL, - "rgt" bigint DEFAULT 0 NOT NULL, - "level" integer DEFAULT 0 NOT NULL, - "path" varchar(255) DEFAULT '' NOT NULL, - "extension" varchar(50) DEFAULT '' NOT NULL, - "title" varchar(255) DEFAULT '' NOT NULL, - "alias" varchar(255) DEFAULT '' NOT NULL, - "note" varchar(255) DEFAULT '' NOT NULL, - "description" text, - "published" smallint DEFAULT 0 NOT NULL, - "checked_out" bigint DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "access" bigint DEFAULT 0 NOT NULL, - "params" text, - "metadesc" varchar(1024) DEFAULT '' NOT NULL, - "metakey" varchar(1024) DEFAULT '' NOT NULL, - "metadata" varchar(2048) DEFAULT '' NOT NULL, - "created_user_id" integer DEFAULT 0 NOT NULL, - "created_time" timestamp without time zone NOT NULL, - "modified_user_id" integer DEFAULT 0 NOT NULL, - "modified_time" timestamp without time zone NOT NULL, - "hits" integer DEFAULT 0 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "version" bigint DEFAULT 1 NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__categories_cat_idx" ON "#__categories" ("extension", "published", "access"); -CREATE INDEX "#__categories_idx_access" ON "#__categories" ("access"); -CREATE INDEX "#__categories_idx_checkout" ON "#__categories" ("checked_out"); -CREATE INDEX "#__categories_idx_path" ON "#__categories" ("path"); -CREATE INDEX "#__categories_idx_left_right" ON "#__categories" ("lft", "rgt"); -CREATE INDEX "#__categories_idx_alias" ON "#__categories" ("alias"); -CREATE INDEX "#__categories_idx_language" ON "#__categories" ("language"); - -COMMENT ON COLUMN "#__categories"."asset_id" IS 'FK to the #__assets table.'; -COMMENT ON COLUMN "#__categories"."metadesc" IS 'The meta description for the page.'; -COMMENT ON COLUMN "#__categories"."metakey" IS 'The keywords for the page.'; -COMMENT ON COLUMN "#__categories"."metadata" IS 'JSON encoded metadata properties.'; - --- --- Dumping data for table `#__categories` --- - -INSERT INTO "#__categories" ("id", "asset_id", "parent_id", "lft", "rgt", "level", "path", "extension", "title", "alias", "note", "description", "published", "checked_out", "checked_out_time", "access", "params", "metadesc", "metakey", "metadata", "created_user_id", "created_time", "modified_user_id", "modified_time", "hits", "language", "version") VALUES -(1, 0, 0, 0, 11, 0, '', 'system', 'ROOT', 'root', '', '', 1, 0, NULL, 1, '{}', '', '', '{}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), -(2, 27, 1, 1, 2, 1, 'uncategorised', 'com_content', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":"","workflow_id":"use_default"}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), -(3, 28, 1, 3, 4, 1, 'uncategorised', 'com_banners', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), -(4, 29, 1, 5, 6, 1, 'uncategorised', 'com_contact', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), -(5, 30, 1, 7, 8, 1, 'uncategorised', 'com_newsfeeds', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), -(7, 32, 1, 9, 10, 1, 'uncategorised', 'com_users', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1); - -SELECT setval('#__categories_id_seq', 8, false); - --- --- Table structure for table `#__contact_details` --- - -CREATE TABLE IF NOT EXISTS "#__contact_details" ( - "id" serial NOT NULL, - "name" varchar(255) NOT NULL, - "alias" varchar(255) NOT NULL, - "con_position" varchar(255), - "address" text, - "suburb" varchar(100), - "state" varchar(100), - "country" varchar(100), - "postcode" varchar(100), - "telephone" varchar(255), - "fax" varchar(255), - "misc" text, - "image" varchar(255), - "email_to" varchar(255), - "default_con" smallint NOT NULL DEFAULT 0, - "published" smallint NOT NULL DEFAULT 0, - "checked_out" bigint NOT NULL DEFAULT 0, - "checked_out_time" timestamp without time zone, - "ordering" bigint NOT NULL DEFAULT 0, - "params" text NOT NULL, - "user_id" bigint NOT NULL DEFAULT 0, - "catid" bigint NOT NULL DEFAULT 0, - "access" bigint NOT NULL DEFAULT 0, - "mobile" varchar(255) NOT NULL DEFAULT '', - "webpage" varchar(255) NOT NULL DEFAULT '', - "sortname1" varchar(255) NOT NULL DEFAULT '', - "sortname2" varchar(255) NOT NULL DEFAULT '', - "sortname3" varchar(255) NOT NULL DEFAULT '', - "language" varchar(7) NOT NULL, - "created" timestamp without time zone NOT NULL, - "created_by" integer NOT NULL DEFAULT 0, - "created_by_alias" varchar(255) NOT NULL DEFAULT '', - "modified" timestamp without time zone NOT NULL, - "modified_by" integer NOT NULL DEFAULT 0, - "metakey" text, - "metadesc" text NOT NULL, - "metadata" text NOT NULL, - "featured" smallint NOT NULL DEFAULT 0, - "publish_up" timestamp without time zone, - "publish_down" timestamp without time zone, - "version" bigint NOT NULL DEFAULT 1, - "hits" bigint NOT NULL DEFAULT 0, - PRIMARY KEY ("id") -); -CREATE INDEX "#__contact_details_idx_access" ON "#__contact_details" ("access"); -CREATE INDEX "#__contact_details_idx_checkout" ON "#__contact_details" ("checked_out"); -CREATE INDEX "#__contact_details_idx_state" ON "#__contact_details" ("published"); -CREATE INDEX "#__contact_details_idx_catid" ON "#__contact_details" ("catid"); -CREATE INDEX "#__contact_details_idx_createdby" ON "#__contact_details" ("created_by"); -CREATE INDEX "#__contact_details_idx_featured_catid" ON "#__contact_details" ("featured", "catid"); -CREATE INDEX "#__contact_details_idx_language" ON "#__contact_details" ("language"); - -COMMENT ON COLUMN "#__contact_details"."featured" IS 'Set if contact is featured.'; - --- --- Table structure for table `#__content` --- - -CREATE TABLE IF NOT EXISTS "#__content" ( - "id" serial NOT NULL, - "asset_id" bigint DEFAULT 0 NOT NULL, - "title" varchar(255) DEFAULT '' NOT NULL, - "alias" varchar(255) DEFAULT '' NOT NULL, - "introtext" text NOT NULL, - "fulltext" text NOT NULL, - "state" smallint DEFAULT 0 NOT NULL, - "catid" bigint DEFAULT 0 NOT NULL, - "created" timestamp without time zone NOT NULL, - "created_by" bigint DEFAULT 0 NOT NULL, - "created_by_alias" varchar(255) DEFAULT '' NOT NULL, - "modified" timestamp without time zone NOT NULL, - "modified_by" bigint DEFAULT 0 NOT NULL, - "checked_out" bigint DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "publish_up" timestamp without time zone, - "publish_down" timestamp without time zone, - "images" text NOT NULL, - "urls" text NOT NULL, - "attribs" varchar(5120) NOT NULL, - "version" bigint DEFAULT 1 NOT NULL, - "ordering" bigint DEFAULT 0 NOT NULL, - "metakey" text, - "metadesc" text NOT NULL, - "access" bigint DEFAULT 0 NOT NULL, - "hits" bigint DEFAULT 0 NOT NULL, - "metadata" text NOT NULL, - "featured" smallint DEFAULT 0 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "note" varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__content_idx_access" ON "#__content" ("access"); -CREATE INDEX "#__content_idx_checkout" ON "#__content" ("checked_out"); -CREATE INDEX "#__content_idx_state" ON "#__content" ("state"); -CREATE INDEX "#__content_idx_catid" ON "#__content" ("catid"); -CREATE INDEX "#__content_idx_createdby" ON "#__content" ("created_by"); -CREATE INDEX "#__content_idx_featured_catid" ON "#__content" ("featured", "catid"); -CREATE INDEX "#__content_idx_language" ON "#__content" ("language"); -CREATE INDEX "#__content_idx_alias" ON "#__content" ("alias"); - -COMMENT ON COLUMN "#__content"."asset_id" IS 'FK to the #__assets table.'; -COMMENT ON COLUMN "#__content"."featured" IS 'Set if article is featured.'; -COMMENT ON COLUMN "#__content"."language" IS 'The language code for the article.'; - - --- --- Table structure for table `#__content_frontpage` --- - -CREATE TABLE IF NOT EXISTS "#__content_frontpage" ( - "content_id" bigint DEFAULT 0 NOT NULL, - "ordering" bigint DEFAULT 0 NOT NULL, - "featured_up" timestamp without time zone, - "featured_down" timestamp without time zone, - PRIMARY KEY ("content_id") -); - --- --- Table structure for table `#__content_rating` --- - -CREATE TABLE IF NOT EXISTS "#__content_rating" ( - "content_id" bigint DEFAULT 0 NOT NULL, - "rating_sum" bigint DEFAULT 0 NOT NULL, - "rating_count" bigint DEFAULT 0 NOT NULL, - "lastip" varchar(50) DEFAULT '' NOT NULL, - PRIMARY KEY ("content_id") -); - --- --- Table structure for table `#__content_types` --- - -CREATE TABLE IF NOT EXISTS "#__content_types" ( - "type_id" serial NOT NULL, - "type_title" varchar(255) NOT NULL DEFAULT '', - "type_alias" varchar(255) NOT NULL DEFAULT '', - "table" varchar(2048) NOT NULL DEFAULT '', - "rules" text NOT NULL, - "field_mappings" text NOT NULL, - "router" varchar(255) NOT NULL DEFAULT '', - "content_history_options" varchar(5120) DEFAULT NULL, - PRIMARY KEY ("type_id") -); -CREATE INDEX "#__content_types_idx_alias" ON "#__content_types" ("type_alias"); - -COMMENT ON COLUMN "#__content_types"."content_history_options" IS 'JSON string for com_contenthistory options'; - --- --- Dumping data for table `#__content_types` --- - -INSERT INTO "#__content_types" ("type_id", "type_title", "type_alias", "table", "rules", "field_mappings", "router", "content_history_options") VALUES -(1, 'Article', 'com_content.article', '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}}', 'ContentHelperRoute::getArticleRoute', '{"formFile":"administrator\\/components\\/com_content\\/forms\\/article.xml", "hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits", "ordering"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), -(2, 'Contact', 'com_contact.contact', '{"special":{"dbtable":"#__contact_details","key":"id","type":"ContactTable","prefix":"Joomla\\\\Component\\\\Contact\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}', 'ContactHelperRoute::getContactRoute', '{"formFile":"administrator\\/components\\/com_contact\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[ {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ] }'), -(3, 'Newsfeed', 'com_newsfeeds.newsfeed', '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"NewsfeedTable","prefix":"Joomla\\\\Component\\\\Newsfeeds\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}', 'NewsfeedsHelperRoute::getNewsfeedRoute', '{"formFile":"administrator\\/components\\/com_newsfeeds\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), -(4, 'User', 'com_users.user', '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerDate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "asset_id":"null"}, "special":{}}', '', ''), -(5, 'Article Category', 'com_content.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContentHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(6, 'Contact Category', 'com_contact.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContactHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(7, 'Newsfeeds Category', 'com_newsfeeds.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'NewsfeedsHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(8, 'Tag', 'com_tags.tag', '{"special":{"dbtable":"#__tags","key":"tag_id","type":"TagTable","prefix":"Joomla\\\\Component\\\\Tags\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "asset_id":"null"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}', 'TagsHelperRoute::getTagRoute', '{"formFile":"administrator\\/components\\/com_tags\\/forms\\/tag.xml", "hideFields":["checked_out","checked_out_time","version", "lft", "rgt", "level", "path", "urls", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), -(9, 'Banner', 'com_banners.banner', '{"special":{"dbtable":"#__banners","key":"id","type":"BannerTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"imptotal":"imptotal", "impmade":"impmade", "clicks":"clicks", "clickurl":"clickurl", "custombannercode":"custombannercode", "cid":"cid", "purchase_type":"purchase_type", "track_impressions":"track_impressions", "track_clicks":"track_clicks"}}', '','{"formFile":"administrator\\/components\\/com_banners\\/forms\\/banner.xml", "hideFields":["checked_out","checked_out_time","version", "reset"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "imptotal", "impmade", "reset"], "convertToInt":["publish_up", "publish_down", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), -(10, 'Banners Category', 'com_banners.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}','','{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), -(11, 'Banner Client', 'com_banners.client', '{"special":{"dbtable":"#__banner_clients","key":"id","type":"ClientTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_banners\\/forms\\/client.xml", "hideFields":["checked_out","checked_out_time"], "ignoreChanges":["checked_out", "checked_out_time"], "convertToInt":[], "displayLookup":[]}'), -(12, 'User Notes', 'com_users.note', '{"special":{"dbtable":"#__user_notes","key":"id","type":"NoteTable","prefix":"Joomla\\\\Component\\\\Users\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_users\\/forms\\/note.xml", "hideFields":["checked_out","checked_out_time", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time"], "convertToInt":["publish_up", "publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), -(13, 'User Notes Category', 'com_users.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', '', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'); - -SELECT setval('#__content_types_type_id_seq', 10000, false); - --- --- Table structure for table `#__contentitem_tag_map` --- - -CREATE TABLE IF NOT EXISTS "#__contentitem_tag_map" ( - "type_alias" varchar(255) NOT NULL DEFAULT '', - "core_content_id" integer NOT NULL, - "content_item_id" integer NOT NULL, - "tag_id" integer NOT NULL, - "tag_date" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, - "type_id" integer NOT NULL, - PRIMARY KEY ("type_id", "content_item_id", "tag_id") -); -CREATE INDEX "#__contentitem_tag_map_idx_tag_type" ON "#__contentitem_tag_map" ("tag_id", "type_id"); -CREATE INDEX "#__contentitem_tag_map_idx_date_id" ON "#__contentitem_tag_map" ("tag_date", "tag_id"); -CREATE INDEX "#__contentitem_tag_map_idx_core_content_id" ON "#__contentitem_tag_map" ("core_content_id"); - -COMMENT ON COLUMN "#__contentitem_tag_map"."core_content_id" IS 'PK from the core content table'; -COMMENT ON COLUMN "#__contentitem_tag_map"."content_item_id" IS 'PK from the content type table'; -COMMENT ON COLUMN "#__contentitem_tag_map"."tag_id" IS 'PK from the tag table'; -COMMENT ON COLUMN "#__contentitem_tag_map"."tag_date" IS 'Date of most recent save for this tag-item'; -COMMENT ON COLUMN "#__contentitem_tag_map"."type_id" IS 'PK from the content_type table'; - --- -------------------------------------------------------- - --- --- Table structure for table `#__csp` --- - -CREATE TABLE IF NOT EXISTS "#__csp" ( - "id" serial NOT NULL, - "document_uri" varchar(500) NOT NULL DEFAULT '', - "blocked_uri" varchar(500) NOT NULL DEFAULT '', - "directive" varchar(500) NOT NULL DEFAULT '', - "client" varchar(500) NOT NULL DEFAULT '', - "created" timestamp without time zone NOT NULL, - "modified" timestamp without time zone NOT NULL, - "published" smallint DEFAULT 0 NOT NULL, - PRIMARY KEY ("id") -); - --- -------------------------------------------------------- - - -- -- Table structure for table `#__extensions` -- @@ -771,491 +386,6 @@ SELECT "extension_id", 'English (en-GB)', 'language', 'en-GB', '', 1, 1, 1, 1, 1 INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "checked_out", "checked_out_time", "ordering", "state") SELECT "extension_id", 'English (en-GB)', 'language', 'en-GB', '', 3, 1, 1, 1, 1, '', '', 0, NULL, 0, 0 FROM "#__extensions" WHERE "name" = 'English (en-GB) Language Pack'; --- --- Table structure for table `#__fields` --- - -CREATE TABLE IF NOT EXISTS "#__fields" ( - "id" serial NOT NULL, - "asset_id" bigint DEFAULT 0 NOT NULL, - "context" varchar(255) DEFAULT '' NOT NULL, - "group_id" bigint DEFAULT 0 NOT NULL, - "title" varchar(255) DEFAULT '' NOT NULL, - "name" varchar(255) DEFAULT '' NOT NULL, - "label" varchar(255) DEFAULT '' NOT NULL, - "default_value" text, - "type" varchar(255) DEFAULT 'text' NOT NULL, - "note" varchar(255) DEFAULT '' NOT NULL, - "description" text NOT NULL, - "state" smallint DEFAULT 0 NOT NULL, - "required" smallint DEFAULT 0 NOT NULL, - "checked_out" integer DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "ordering" bigint DEFAULT 0 NOT NULL, - "params" text NOT NULL, - "fieldparams" text NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "created_time" timestamp without time zone NOT NULL, - "created_user_id" bigint DEFAULT 0 NOT NULL, - "modified_time" timestamp without time zone NOT NULL, - "modified_by" bigint DEFAULT 0 NOT NULL, - "access" bigint DEFAULT 0 NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__fields_idx_checked_out" ON "#__fields" ("checked_out"); -CREATE INDEX "#__fields_idx_state" ON "#__fields" ("state"); -CREATE INDEX "#__fields_idx_created_user_id" ON "#__fields" ("created_user_id"); -CREATE INDEX "#__fields_idx_access" ON "#__fields" ("access"); -CREATE INDEX "#__fields_idx_context" ON "#__fields" ("context"); -CREATE INDEX "#__fields_idx_language" ON "#__fields" ("language"); - --- --- Table structure for table `#__fields_categories` --- - -CREATE TABLE IF NOT EXISTS "#__fields_categories" ( - "field_id" bigint DEFAULT 0 NOT NULL, - "category_id" bigint DEFAULT 0 NOT NULL, - PRIMARY KEY ("field_id", "category_id") -); - --- --- Table structure for table `#__fields_groups` --- - -CREATE TABLE IF NOT EXISTS "#__fields_groups" ( - "id" serial NOT NULL, - "asset_id" bigint DEFAULT 0 NOT NULL, - "context" varchar(255) DEFAULT '' NOT NULL, - "title" varchar(255) DEFAULT '' NOT NULL, - "note" varchar(255) DEFAULT '' NOT NULL, - "description" text NOT NULL, - "state" smallint DEFAULT 0 NOT NULL, - "checked_out" integer DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "ordering" integer DEFAULT 0 NOT NULL, - "params" text NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "created" timestamp without time zone NOT NULL, - "created_by" bigint DEFAULT 0 NOT NULL, - "modified" timestamp without time zone NOT NULL, - "modified_by" bigint DEFAULT 0 NOT NULL, - "access" bigint DEFAULT 1 NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__fields_groups_idx_checked_out" ON "#__fields_groups" ("checked_out"); -CREATE INDEX "#__fields_groups_idx_state" ON "#__fields_groups" ("state"); -CREATE INDEX "#__fields_groups_idx_created_by" ON "#__fields_groups" ("created_by"); -CREATE INDEX "#__fields_groups_idx_access" ON "#__fields_groups" ("access"); -CREATE INDEX "#__fields_groups_idx_context" ON "#__fields_groups" ("context"); -CREATE INDEX "#__fields_groups_idx_language" ON "#__fields_groups" ("language"); - --- --- Table structure for table `#__fields_values` --- - -CREATE TABLE IF NOT EXISTS "#__fields_values" ( -"field_id" bigint DEFAULT 0 NOT NULL, -"item_id" varchar(255) DEFAULT '' NOT NULL, -"value" text -); -CREATE INDEX "#__fields_values_idx_field_id" ON "#__fields_values" ("field_id"); -CREATE INDEX "#__fields_values_idx_item_id" ON "#__fields_values" ("item_id"); - --- --- Table structure for table `#__finder_filters` --- - -CREATE TABLE IF NOT EXISTS "#__finder_filters" ( - "filter_id" serial NOT NULL, - "title" varchar(255) NOT NULL, - "alias" varchar(255) NOT NULL, - "state" smallint DEFAULT 1 NOT NULL, - "created" timestamp without time zone NOT NULL, - "created_by" integer DEFAULT 0 NOT NULL, - "created_by_alias" varchar(255) DEFAULT '' NOT NULL, - "modified" timestamp without time zone NOT NULL, - "modified_by" integer DEFAULT 0 NOT NULL, - "checked_out" integer DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "map_count" integer DEFAULT 0 NOT NULL, - "data" text, - "params" text, - PRIMARY KEY ("filter_id") -); - --- --- Table structure for table `#__finder_links` --- - -CREATE TABLE IF NOT EXISTS "#__finder_links" ( - "link_id" serial NOT NULL, - "url" varchar(255) NOT NULL, - "route" varchar(255) NOT NULL, - "title" varchar(400) DEFAULT NULL, - "description" text, - "indexdate" timestamp without time zone NOT NULL, - "md5sum" varchar(32) DEFAULT NULL, - "published" smallint DEFAULT 1 NOT NULL, - "state" integer DEFAULT 1 NOT NULL, - "access" integer DEFAULT 0 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "publish_start_date" timestamp without time zone, - "publish_end_date" timestamp without time zone, - "start_date" timestamp without time zone, - "end_date" timestamp without time zone, - "list_price" numeric(8,2) DEFAULT 0 NOT NULL, - "sale_price" numeric(8,2) DEFAULT 0 NOT NULL, - "type_id" bigint NOT NULL, - "object" bytea, - PRIMARY KEY ("link_id") -); -CREATE INDEX "#__finder_links_idx_type" on "#__finder_links" ("type_id"); -CREATE INDEX "#__finder_links_idx_title" on "#__finder_links" ("title"); -CREATE INDEX "#__finder_links_idx_md5" on "#__finder_links" ("md5sum"); -CREATE INDEX "#__finder_links_idx_language" on "#__finder_links" ("language"); -CREATE INDEX "#__finder_links_idx_url" on "#__finder_links" (substr(url,0,76)); -CREATE INDEX "#__finder_links_idx_published_list" on "#__finder_links" ("published", "state", "access", "publish_start_date", "publish_end_date", "list_price"); -CREATE INDEX "#__finder_links_idx_published_sale" on "#__finder_links" ("published", "state", "access", "publish_start_date", "publish_end_date", "sale_price"); - --- --- Table structure for table `#__finder_links_terms` --- - -CREATE TABLE IF NOT EXISTS "#__finder_links_terms" ( - "link_id" integer NOT NULL, - "term_id" integer NOT NULL, - "weight" numeric(8,2) DEFAULT 0 NOT NULL, - PRIMARY KEY ("link_id", "term_id") -); -CREATE INDEX "#__finder_links_terms_idx_term_weight" on "#__finder_links_terms" ("term_id", "weight"); -CREATE INDEX "#__finder_links_terms_idx_link_term_weight" on "#__finder_links_terms" ("link_id", "term_id", "weight"); - --- --- Table structure for table `#__finder_logging` --- - -CREATE TABLE IF NOT EXISTS "#__finder_logging" ( - "searchterm" character varying(255) NOT NULL DEFAULT '', - "md5sum" character varying(32) NOT NULL DEFAULT '', - "query" bytea NOT NULL, - "hits" integer NOT NULL DEFAULT 1, - "results" integer NOT NULL DEFAULT 0, - PRIMARY KEY ("md5sum") -); -CREATE INDEX "#__finder_logging_idx_md5sum" on "#__finder_logging" ("md5sum"); -CREATE INDEX "#__finder_logging_idx_searchterm" on "#__finder_logging" ("searchterm"); - --- --- Table structure for table `#__finder_taxonomy` --- - -CREATE TABLE IF NOT EXISTS "#__finder_taxonomy" ( - "id" serial NOT NULL, - "parent_id" integer DEFAULT 0 NOT NULL, - "lft" integer DEFAULT 0 NOT NULL, - "rgt" integer DEFAULT 0 NOT NULL, - "level" integer DEFAULT 0 NOT NULL, - "path" VARCHAR(400) NOT NULL DEFAULT '', - "title" VARCHAR(255) NOT NULL DEFAULT '', - "alias" VARCHAR(400) NOT NULL DEFAULT '', - "state" smallint DEFAULT 1 NOT NULL, - "access" smallint DEFAULT 1 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__finder_taxonomy_state" on "#__finder_taxonomy" ("state"); -CREATE INDEX "#__finder_taxonomy_access" on "#__finder_taxonomy" ("access"); -CREATE INDEX "#__finder_taxonomy_path" on "#__finder_taxonomy" ("path"); -CREATE INDEX "#__finder_taxonomy_lft_rgt" on "#__finder_taxonomy" ("lft", "rgt"); -CREATE INDEX "#__finder_taxonomy_alias" on "#__finder_taxonomy" ("alias"); -CREATE INDEX "#__finder_taxonomy_language" on "#__finder_taxonomy" ("language"); -CREATE INDEX "#__finder_taxonomy_idx_parent_published" on "#__finder_taxonomy" ("parent_id", "state", "access"); - --- --- Dumping data for table `#__finder_taxonomy` --- - -INSERT INTO "#__finder_taxonomy" ("id", "parent_id", "lft", "rgt", "level", "path", "title", "alias", "state", "access", "language") VALUES -(1, 0, 0, 1, 0, '', 'ROOT', 'root', 1, 1, '*'); - -SELECT setval('#__finder_taxonomy_id_seq', 2, false); - --- --- Table structure for table `#__finder_taxonomy_map` --- - -CREATE TABLE IF NOT EXISTS "#__finder_taxonomy_map" ( - "link_id" integer NOT NULL, - "node_id" integer NOT NULL, - PRIMARY KEY ("link_id", "node_id") -); -CREATE INDEX "#__finder_taxonomy_map_link_id" on "#__finder_taxonomy_map" ("link_id"); -CREATE INDEX "#__finder_taxonomy_map_node_id" on "#__finder_taxonomy_map" ("node_id"); - --- --- Table structure for table `#__finder_terms` --- - -CREATE TABLE IF NOT EXISTS "#__finder_terms" ( - "term_id" serial NOT NULL, - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "weight" numeric(8,2) DEFAULT 0 NOT NULL, - "soundex" varchar(75) DEFAULT '' NOT NULL, - "links" integer DEFAULT 0 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - PRIMARY KEY ("term_id"), - CONSTRAINT "#__finder_terms_idx_term_language" UNIQUE ("term", "language") -); -CREATE INDEX "#__finder_terms_idx_term_phrase" on "#__finder_terms" ("term", "phrase"); -CREATE INDEX "#__finder_terms_idx_stem_phrase" on "#__finder_terms" ("stem", "phrase"); -CREATE INDEX "#__finder_terms_idx_soundex_phrase" on "#__finder_terms" ("soundex", "phrase"); -CREATE INDEX "#__finder_terms_idx_language" on "#__finder_terms" ("language"); - --- --- Table structure for table `#__finder_terms_common` --- - -CREATE TABLE IF NOT EXISTS "#__finder_terms_common" ( - "term" varchar(75) NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "custom" integer DEFAULT 0 NOT NULL, - CONSTRAINT "#__finder_terms_common_idx_term_language" UNIQUE ("term", "language") -); -CREATE INDEX "#__finder_terms_common_idx_lang" on "#__finder_terms_common" ("language"); - --- --- Dumping data for table `#__finder_terms_common` --- - -INSERT INTO "#__finder_terms_common" ("term", "language", "custom") VALUES -('i', 'en', 0), -('me', 'en', 0), -('my', 'en', 0), -('myself', 'en', 0), -('we', 'en', 0), -('our', 'en', 0), -('ours', 'en', 0), -('ourselves', 'en', 0), -('you', 'en', 0), -('your', 'en', 0), -('yours', 'en', 0), -('yourself', 'en', 0), -('yourselves', 'en', 0), -('he', 'en', 0), -('him', 'en', 0), -('his', 'en', 0), -('himself', 'en', 0), -('she', 'en', 0), -('her', 'en', 0), -('hers', 'en', 0), -('herself', 'en', 0), -('it', 'en', 0), -('its', 'en', 0), -('itself', 'en', 0), -('they', 'en', 0), -('them', 'en', 0), -('their', 'en', 0), -('theirs', 'en', 0), -('themselves', 'en', 0), -('what', 'en', 0), -('which', 'en', 0), -('who', 'en', 0), -('whom', 'en', 0), -('this', 'en', 0), -('that', 'en', 0), -('these', 'en', 0), -('those', 'en', 0), -('am', 'en', 0), -('is', 'en', 0), -('are', 'en', 0), -('was', 'en', 0), -('were', 'en', 0), -('be', 'en', 0), -('been', 'en', 0), -('being', 'en', 0), -('have', 'en', 0), -('has', 'en', 0), -('had', 'en', 0), -('having', 'en', 0), -('do', 'en', 0), -('does', 'en', 0), -('did', 'en', 0), -('doing', 'en', 0), -('would', 'en', 0), -('should', 'en', 0), -('could', 'en', 0), -('ought', 'en', 0), -('i''m', 'en', 0), -('you''re', 'en', 0), -('he''s', 'en', 0), -('she''s', 'en', 0), -('it''s', 'en', 0), -('we''re', 'en', 0), -('they''re', 'en', 0), -('i''ve', 'en', 0), -('you''ve', 'en', 0), -('we''ve', 'en', 0), -('they''ve', 'en', 0), -('i''d', 'en', 0), -('you''d', 'en', 0), -('he''d', 'en', 0), -('she''d', 'en', 0), -('we''d', 'en', 0), -('they''d', 'en', 0), -('i''ll', 'en', 0), -('you''ll', 'en', 0), -('he''ll', 'en', 0), -('she''ll', 'en', 0), -('we''ll', 'en', 0), -('they''ll', 'en', 0), -('isn''t', 'en', 0), -('aren''t', 'en', 0), -('wasn''t', 'en', 0), -('weren''t', 'en', 0), -('hasn''t', 'en', 0), -('haven''t', 'en', 0), -('hadn''t', 'en', 0), -('doesn''t', 'en', 0), -('don''t', 'en', 0), -('didn''t', 'en', 0), -('won''t', 'en', 0), -('wouldn''t', 'en', 0), -('shan''t', 'en', 0), -('shouldn''t', 'en', 0), -('can''t', 'en', 0), -('cannot', 'en', 0), -('couldn''t', 'en', 0), -('mustn''t', 'en', 0), -('let''s', 'en', 0), -('that''s', 'en', 0), -('who''s', 'en', 0), -('what''s', 'en', 0), -('here''s', 'en', 0), -('there''s', 'en', 0), -('when''s', 'en', 0), -('where''s', 'en', 0), -('why''s', 'en', 0), -('how''s', 'en', 0), -('a', 'en', 0), -('an', 'en', 0), -('the', 'en', 0), -('and', 'en', 0), -('but', 'en', 0), -('if', 'en', 0), -('or', 'en', 0), -('because', 'en', 0), -('as', 'en', 0), -('until', 'en', 0), -('while', 'en', 0), -('of', 'en', 0), -('at', 'en', 0), -('by', 'en', 0), -('for', 'en', 0), -('with', 'en', 0), -('about', 'en', 0), -('against', 'en', 0), -('between', 'en', 0), -('into', 'en', 0), -('through', 'en', 0), -('during', 'en', 0), -('before', 'en', 0), -('after', 'en', 0), -('above', 'en', 0), -('below', 'en', 0), -('to', 'en', 0), -('from', 'en', 0), -('up', 'en', 0), -('down', 'en', 0), -('in', 'en', 0), -('out', 'en', 0), -('on', 'en', 0), -('off', 'en', 0), -('over', 'en', 0), -('under', 'en', 0), -('again', 'en', 0), -('further', 'en', 0), -('then', 'en', 0), -('once', 'en', 0), -('here', 'en', 0), -('there', 'en', 0), -('when', 'en', 0), -('where', 'en', 0), -('why', 'en', 0), -('how', 'en', 0), -('all', 'en', 0), -('any', 'en', 0), -('both', 'en', 0), -('each', 'en', 0), -('few', 'en', 0), -('more', 'en', 0), -('most', 'en', 0), -('other', 'en', 0), -('some', 'en', 0), -('such', 'en', 0), -('no', 'en', 0), -('nor', 'en', 0), -('not', 'en', 0), -('only', 'en', 0), -('own', 'en', 0), -('same', 'en', 0), -('so', 'en', 0), -('than', 'en', 0), -('too', 'en', 0), -('very', 'en', 0); - --- --- Table structure for table `#__finder_tokens` --- - -CREATE TABLE IF NOT EXISTS "#__finder_tokens" ( - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "weight" numeric(8,2) DEFAULT 1 NOT NULL, - "context" smallint DEFAULT 2 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL -); -CREATE INDEX "#__finder_tokens_idx_word" on "#__finder_tokens" ("term"); -CREATE INDEX "#__finder_tokens_idx_stem" on "#__finder_tokens" ("stem"); -CREATE INDEX "#__finder_tokens_idx_context" on "#__finder_tokens" ("context"); -CREATE INDEX "#__finder_tokens_idx_language" on "#__finder_tokens" ("language"); - --- --- Table structure for table `#__finder_tokens_aggregate` --- - -CREATE TABLE IF NOT EXISTS "#__finder_tokens_aggregate" ( - "term_id" integer NOT NULL, - "term" varchar(75) NOT NULL, - "stem" varchar(75) DEFAULT '' NOT NULL, - "common" smallint DEFAULT 0 NOT NULL, - "phrase" smallint DEFAULT 0 NOT NULL, - "term_weight" numeric(8,2) NOT NULL DEFAULT 0, - "context" smallint DEFAULT 2 NOT NULL, - "context_weight" numeric(8,2) NOT NULL DEFAULT 0, - "total_weight" numeric(8,2) NOT NULL DEFAULT 0, - "language" varchar(7) DEFAULT '' NOT NULL -); -CREATE INDEX "#__finder_tokens_aggregate_token" on "#__finder_tokens_aggregate" ("term"); -CREATE INDEX "_#__finder_tokens_aggregate_keyword_id" on "#__finder_tokens_aggregate" ("term_id"); - --- --- Table structure for table `#__finder_types` --- - -CREATE TABLE IF NOT EXISTS "#__finder_types" ( - "id" serial NOT NULL, - "title" varchar(100) NOT NULL, - "mime" varchar(100) DEFAULT '' NOT NULL, - PRIMARY KEY ("id"), - CONSTRAINT "#__finder_types_title" UNIQUE ("title") -); - -- -- Table structure for table `#__languages` -- @@ -1426,35 +556,6 @@ INSERT INTO "#__menu_types" ("id", "asset_id", "menutype", "title", "description SELECT setval('#__menu_types_id_seq', 2, false); --- --- Table structure for table `#__messages` --- - -CREATE TABLE IF NOT EXISTS "#__messages" ( - "message_id" serial NOT NULL, - "user_id_from" bigint DEFAULT 0 NOT NULL, - "user_id_to" bigint DEFAULT 0 NOT NULL, - "folder_id" smallint DEFAULT 0 NOT NULL, - "date_time" timestamp without time zone NOT NULL, - "state" smallint DEFAULT 0 NOT NULL, - "priority" smallint DEFAULT 0 NOT NULL, - "subject" varchar(255) DEFAULT '' NOT NULL, - "message" text NOT NULL, - PRIMARY KEY ("message_id") -); -CREATE INDEX "#__messages_useridto_state" ON "#__messages" ("user_id_to", "state"); - --- --- Table structure for table `#__messages_cfg` --- - -CREATE TABLE IF NOT EXISTS "#__messages_cfg" ( - "user_id" bigint DEFAULT 0 NOT NULL, - "cfg_name" varchar(100) DEFAULT '' NOT NULL, - "cfg_value" varchar(255) DEFAULT '' NOT NULL, - CONSTRAINT "#__messages_cfg_idx_user_var_name" UNIQUE ("user_id", "cfg_name") -); - -- -- Table structure for table `#__modules` -- @@ -1581,163 +682,6 @@ INSERT INTO "#__modules_menu" ("moduleid", "menuid") VALUES (107, 0), (108, 0); --- --- Table structure for table `#__newsfeeds` --- - -CREATE TABLE IF NOT EXISTS "#__newsfeeds" ( - "catid" bigint DEFAULT 0 NOT NULL, - "id" serial NOT NULL, - "name" varchar(100) DEFAULT '' NOT NULL, - "alias" varchar(100) DEFAULT '' NOT NULL, - "link" varchar(2048) DEFAULT '' NOT NULL, - "published" smallint DEFAULT 0 NOT NULL, - "numarticles" bigint DEFAULT 1 NOT NULL, - "cache_time" bigint DEFAULT 3600 NOT NULL, - "checked_out" integer DEFAULT 0 NOT NULL, - "checked_out_time" timestamp without time zone, - "ordering" bigint DEFAULT 0 NOT NULL, - "rtl" smallint DEFAULT 0 NOT NULL, - "access" bigint DEFAULT 0 NOT NULL, - "language" varchar(7) DEFAULT '' NOT NULL, - "params" text NOT NULL, - "created" timestamp without time zone NOT NULL, - "created_by" integer DEFAULT 0 NOT NULL, - "created_by_alias" varchar(255) DEFAULT '' NOT NULL, - "modified" timestamp without time zone NOT NULL, - "modified_by" integer DEFAULT 0 NOT NULL, - "metakey" text, - "metadesc" text NOT NULL, - "metadata" text NOT NULL, - "publish_up" timestamp without time zone, - "publish_down" timestamp without time zone, - "description" text NOT NULL, - "version" bigint DEFAULT 1 NOT NULL, - "hits" bigint DEFAULT 0 NOT NULL, - "images" text NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__newsfeeds_idx_access" ON "#__newsfeeds" ("access"); -CREATE INDEX "#__newsfeeds_idx_checkout" ON "#__newsfeeds" ("checked_out"); -CREATE INDEX "#__newsfeeds_idx_state" ON "#__newsfeeds" ("published"); -CREATE INDEX "#__newsfeeds_idx_catid" ON "#__newsfeeds" ("catid"); -CREATE INDEX "#__newsfeeds_idx_createdby" ON "#__newsfeeds" ("created_by"); -CREATE INDEX "#__newsfeeds_idx_language" ON "#__newsfeeds" ("language"); - --- --- Table structure for table `#__overrider` --- - -CREATE TABLE IF NOT EXISTS "#__overrider" ( - "id" serial NOT NULL, - "constant" varchar(255) NOT NULL, - "string" text NOT NULL, - "file" varchar(255) NOT NULL, - PRIMARY KEY ("id") -); - -COMMENT ON COLUMN "#__overrider"."id" IS 'Primary Key'; - --- --- Table structure for table `#__postinstall_messages` --- - -CREATE TABLE IF NOT EXISTS "#__postinstall_messages" ( - "postinstall_message_id" serial NOT NULL, - "extension_id" bigint NOT NULL DEFAULT 700, - "title_key" varchar(255) NOT NULL DEFAULT '', - "description_key" varchar(255) NOT NULL DEFAULT '', - "action_key" varchar(255) NOT NULL DEFAULT '', - "language_extension" varchar(255) NOT NULL DEFAULT 'com_postinstall', - "language_client_id" smallint NOT NULL DEFAULT 1, - "type" varchar(10) NOT NULL DEFAULT 'link', - "action_file" varchar(255) DEFAULT '', - "action" varchar(255) DEFAULT '', - "condition_file" varchar(255) DEFAULT NULL, - "condition_method" varchar(255) DEFAULT NULL, - "version_introduced" varchar(255) NOT NULL DEFAULT '3.2.0', - "enabled" smallint NOT NULL DEFAULT 1, - PRIMARY KEY ("postinstall_message_id") -); - -COMMENT ON COLUMN "#__postinstall_messages"."extension_id" IS 'FK to jos_extensions'; -COMMENT ON COLUMN "#__postinstall_messages"."title_key" IS 'Lang key for the title'; -COMMENT ON COLUMN "#__postinstall_messages"."description_key" IS 'Lang key for description'; -COMMENT ON COLUMN "#__postinstall_messages"."language_extension" IS 'Extension holding lang keys'; -COMMENT ON COLUMN "#__postinstall_messages"."type" IS 'Message type - message, link, action'; -COMMENT ON COLUMN "#__postinstall_messages"."action_file" IS 'RAD URI to the PHP file containing action method'; -COMMENT ON COLUMN "#__postinstall_messages"."action" IS 'Action method name or URL'; -COMMENT ON COLUMN "#__postinstall_messages"."condition_file" IS 'RAD URI to file holding display condition method'; -COMMENT ON COLUMN "#__postinstall_messages"."condition_method" IS 'Display condition method, must return boolean'; -COMMENT ON COLUMN "#__postinstall_messages"."version_introduced" IS 'Version when this message was introduced'; - --- --- Dumping data for table `#__postinstall_messages` --- - -INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") -SELECT "extension_id", 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION', 'plg_twofactorauth_totp', 1, 'action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_condition', '3.2.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; -INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") -SELECT "extension_id", 'COM_CPANEL_WELCOME_BEGINNERS_TITLE', 'COM_CPANEL_WELCOME_BEGINNERS_MESSAGE', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.2.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; -INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") -SELECT "extension_id", 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE', 'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/statscollection.php', 'admin_postinstall_statscollection_condition', '3.5.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; -INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") -SELECT "extension_id", 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION', 'plg_system_updatenotification', 1, 'action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_condition', '3.6.3', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; -INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") -SELECT "extension_id", 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheaders', 1, 'action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_condition', '4.0.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; - --- --- Table structure for table `#__privacy_requests` --- - -CREATE TABLE "#__privacy_requests" ( - "id" serial NOT NULL, - "email" varchar(100) DEFAULT '' NOT NULL, - "requested_at" timestamp without time zone NOT NULL, - "status" smallint DEFAULT 0 NOT NULL, - "request_type" varchar(25) DEFAULT '' NOT NULL, - "confirm_token" varchar(100) DEFAULT '' NOT NULL, - "confirm_token_created_at" timestamp without time zone, - PRIMARY KEY ("id") -); - --- --- Table structure for table `#__privacy_consents` --- - -CREATE TABLE "#__privacy_consents" ( - "id" serial NOT NULL, - "user_id" bigint DEFAULT 0 NOT NULL, - "state" smallint DEFAULT 1 NOT NULL, - "created" timestamp without time zone NOT NULL, - "subject" varchar(255) DEFAULT '' NOT NULL, - "body" text NOT NULL, - "remind" smallint DEFAULT 0 NOT NULL, - "token" varchar(100) DEFAULT '' NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__privacy_consents_idx_user_id" ON "#__privacy_consents" ("user_id"); - --- --- Table structure for table `#__redirect_links` --- - -CREATE TABLE IF NOT EXISTS "#__redirect_links" ( - "id" serial NOT NULL, - "old_url" varchar(2048) NOT NULL, - "new_url" varchar(2048), - "referer" varchar(2048) NOT NULL, - "comment" varchar(255) DEFAULT '' NOT NULL, - "hits" bigint DEFAULT 0 NOT NULL, - "published" smallint NOT NULL, - "created_date" timestamp without time zone NOT NULL, - "modified_date" timestamp without time zone NOT NULL, - "header" integer DEFAULT 301 NOT NULL, - PRIMARY KEY ("id") -); -CREATE INDEX "#__redirect_links_idx_old_url" ON "#__redirect_links" ("old_url"); -CREATE INDEX "#__redirect_links_idx_link_modifed" ON "#__redirect_links" ("modified_date"); - -- -- Table structure for table `#__schemas` -- @@ -1866,99 +810,6 @@ INSERT INTO "#__template_styles" ("id", "template", "client_id", "home", "title" SELECT setval('#__template_styles_id_seq', 12, false); --- --- Table structure for table `#__ucm_base` --- - -CREATE TABLE IF NOT EXISTS "#__ucm_base" ( - "ucm_id" serial NOT NULL, - "ucm_item_id" bigint NOT NULL, - "ucm_type_id" bigint NOT NULL, - "ucm_language_id" bigint NOT NULL, - PRIMARY KEY ("ucm_id") -); -CREATE INDEX "#__ucm_base_ucm_item_id" ON "#__ucm_base" ("ucm_item_id"); -CREATE INDEX "#__ucm_base_ucm_type_id" ON "#__ucm_base" ("ucm_type_id"); -CREATE INDEX "#__ucm_base_ucm_language_id" ON "#__ucm_base" ("ucm_language_id"); - --- --- Table structure for table `#__ucm_content` --- - -CREATE TABLE IF NOT EXISTS "#__ucm_content" ( - "core_content_id" serial NOT NULL, - "core_type_alias" varchar(255) DEFAULT '' NOT NULL, - "core_title" varchar(255) DEFAULT '' NOT NULL, - "core_alias" varchar(255) DEFAULT '' NOT NULL, - "core_body" text, - "core_state" smallint DEFAULT 0 NOT NULL, - "core_checked_out_time" timestamp without time zone, - "core_checked_out_user_id" bigint DEFAULT 0 NOT NULL, - "core_access" bigint DEFAULT 0 NOT NULL, - "core_params" text, - "core_featured" smallint DEFAULT 0 NOT NULL, - "core_metadata" text, - "core_created_user_id" bigint DEFAULT 0 NOT NULL, - "core_created_by_alias" varchar(255) DEFAULT '' NOT NULL, - "core_created_time" timestamp without time zone NOT NULL, - "core_modified_user_id" bigint DEFAULT 0 NOT NULL, - "core_modified_time" timestamp without time zone NOT NULL, - "core_language" varchar(7) DEFAULT '' NOT NULL, - "core_publish_up" timestamp without time zone, - "core_publish_down" timestamp without time zone, - "core_content_item_id" bigint DEFAULT 0 NOT NULL, - "asset_id" bigint DEFAULT 0 NOT NULL, - "core_images" text, - "core_urls" text, - "core_hits" bigint DEFAULT 0 NOT NULL, - "core_version" bigint DEFAULT 1 NOT NULL, - "core_ordering" bigint DEFAULT 0 NOT NULL, - "core_metakey" text, - "core_metadesc" text, - "core_catid" bigint DEFAULT 0 NOT NULL, - "core_type_id" bigint DEFAULT 0 NOT NULL, - PRIMARY KEY ("core_content_id"), - CONSTRAINT "#__ucm_content_idx_type_alias_item_id" UNIQUE ("core_type_alias", "core_content_item_id") -); -CREATE INDEX "#__ucm_content_tag_idx" ON "#__ucm_content" ("core_state", "core_access"); -CREATE INDEX "#__ucm_content_idx_access" ON "#__ucm_content" ("core_access"); -CREATE INDEX "#__ucm_content_idx_alias" ON "#__ucm_content" ("core_alias"); -CREATE INDEX "#__ucm_content_idx_language" ON "#__ucm_content" ("core_language"); -CREATE INDEX "#__ucm_content_idx_title" ON "#__ucm_content" ("core_title"); -CREATE INDEX "#__ucm_content_idx_modified_time" ON "#__ucm_content" ("core_modified_time"); -CREATE INDEX "#__ucm_content_idx_created_time" ON "#__ucm_content" ("core_created_time"); -CREATE INDEX "#__ucm_content_idx_content_type" ON "#__ucm_content" ("core_type_alias"); -CREATE INDEX "#__ucm_content_idx_core_modified_user_id" ON "#__ucm_content" ("core_modified_user_id"); -CREATE INDEX "#__ucm_content_idx_core_checked_out_user_id" ON "#__ucm_content" ("core_checked_out_user_id"); -CREATE INDEX "#__ucm_content_idx_core_created_user_id" ON "#__ucm_content" ("core_created_user_id"); -CREATE INDEX "#__ucm_content_idx_core_type_id" ON "#__ucm_content" ("core_type_id"); - --- --- Table structure for table `#__ucm_history` --- - -CREATE TABLE IF NOT EXISTS "#__ucm_history" ( - "version_id" serial NOT NULL, - "ucm_item_id" integer NOT NULL, - "ucm_type_id" integer NOT NULL, - "version_note" varchar(255) NOT NULL DEFAULT '', - "save_date" timestamp with time zone NOT NULL, - "editor_user_id" integer NOT NULL DEFAULT 0, - "character_count" integer NOT NULL DEFAULT 0, - "sha1_hash" varchar(50) NOT NULL DEFAULT '', - "version_data" text NOT NULL, - "keep_forever" smallint NOT NULL DEFAULT 0, - PRIMARY KEY ("version_id") -); -CREATE INDEX "#__ucm_history_idx_ucm_item_id" ON "#__ucm_history" ("ucm_type_id", "ucm_item_id"); -CREATE INDEX "#__ucm_history_idx_save_date" ON "#__ucm_history" ("save_date"); - -COMMENT ON COLUMN "#__ucm_history"."version_note" IS 'Optional version name'; -COMMENT ON COLUMN "#__ucm_history"."character_count" IS 'Number of characters in this version.'; -COMMENT ON COLUMN "#__ucm_history"."sha1_hash" IS 'SHA1 hash of the version_data column.'; -COMMENT ON COLUMN "#__ucm_history"."version_data" IS 'json-encoded string of version data'; -COMMENT ON COLUMN "#__ucm_history"."keep_forever" IS '0=auto delete; 1=keep'; - -- -- Table structure for table `#__updates` -- @@ -2177,115 +1028,6 @@ CREATE TABLE IF NOT EXISTS "#__user_usergroup_map" ( COMMENT ON COLUMN "#__user_usergroup_map"."user_id" IS 'Foreign Key to #__users.id'; COMMENT ON COLUMN "#__user_usergroup_map"."group_id" IS 'Foreign Key to #__usergroups.id'; --- --- Table: #__action_logs --- -CREATE TABLE "#__action_logs" ( - "id" serial NOT NULL, - "message_language_key" varchar(255) NOT NULL DEFAULT '', - "message" text NOT NULL, - "log_date" timestamp without time zone NOT NULL, - "extension" varchar(50) NOT NULL DEFAULT '', - "user_id" integer DEFAULT 0 NOT NULL, - "item_id" integer DEFAULT 0 NOT NULL, - "ip_address" varchar(40) NOT NULL DEFAULT '0.0.0.0', - PRIMARY KEY ("id") -); - -CREATE INDEX "#__action_logs_idx_user_id" ON "#__action_logs" ("user_id"); -CREATE INDEX "#__action_logs_idx_user_id_logdate" ON "#__action_logs" ("user_id", "log_date"); -CREATE INDEX "#__action_logs_idx_user_id_extension" ON "#__action_logs" ("user_id", "extension"); -CREATE INDEX "#__action_logs_idx_extension_itemid" ON "#__action_logs" ("extension", "item_id"); - --- --- Table: #__action_logs_extensions --- -CREATE TABLE "#__action_logs_extensions" ( - "id" serial NOT NULL, - "extension" varchar(50) NOT NULL DEFAULT '', - PRIMARY KEY ("id") -); - --- --- Dumping data for table `#__action_logs_extensions` --- -INSERT INTO "#__action_logs_extensions" ("id", "extension") VALUES -(1, 'com_banners'), -(2, 'com_cache'), -(3, 'com_categories'), -(4, 'com_config'), -(5, 'com_contact'), -(6, 'com_content'), -(7, 'com_installer'), -(8, 'com_media'), -(9, 'com_menus'), -(10, 'com_messages'), -(11, 'com_modules'), -(12, 'com_newsfeeds'), -(13, 'com_plugins'), -(14, 'com_redirect'), -(15, 'com_tags'), -(16, 'com_templates'), -(17, 'com_users'), -(18, 'com_checkin'); - -SELECT setval('#__action_logs_extensions_id_seq', 19, false); --- -------------------------------------------------------- - --- --- Table: #__action_log_config --- -CREATE TABLE "#__action_log_config" ( - "id" serial NOT NULL, - "type_title" varchar(255) NOT NULL DEFAULT '', - "type_alias" varchar(255) NOT NULL DEFAULT '', - "id_holder" varchar(255) NULL, - "title_holder" varchar(255) NULL, - "table_name" varchar(255) NULL, - "text_prefix" varchar(255) NULL, - PRIMARY KEY ("id") -); - --- --- Dumping data for table `#__action_log_config` --- -INSERT INTO "#__action_log_config" ("id", "type_title", "type_alias", "id_holder", "title_holder", "table_name", "text_prefix") VALUES -(1, 'article', 'com_content.article', 'id' ,'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), -(2, 'article', 'com_content.form', 'id', 'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), -(3, 'banner', 'com_banners.banner', 'id' ,'name' , '#__banners', 'PLG_ACTIONLOG_JOOMLA'), -(4, 'user_note', 'com_users.note', 'id', 'subject' ,'#__user_notes', 'PLG_ACTIONLOG_JOOMLA'), -(5, 'media', 'com_media.file', '' , 'name' , '', 'PLG_ACTIONLOG_JOOMLA'), -(6, 'category', 'com_categories.category', 'id' , 'title' , '#__categories', 'PLG_ACTIONLOG_JOOMLA'), -(7, 'menu', 'com_menus.menu', 'id' ,'title' , '#__menu_types', 'PLG_ACTIONLOG_JOOMLA'), -(8, 'menu_item', 'com_menus.item', 'id' , 'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'), -(9, 'newsfeed', 'com_newsfeeds.newsfeed', 'id' ,'name' , '#__newsfeeds', 'PLG_ACTIONLOG_JOOMLA'), -(10, 'link', 'com_redirect.link', 'id', 'old_url' , '#__redirect_links', 'PLG_ACTIONLOG_JOOMLA'), -(11, 'tag', 'com_tags.tag', 'id', 'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'), -(12, 'style', 'com_templates.style', 'id' , 'title' , '#__template_styles', 'PLG_ACTIONLOG_JOOMLA'), -(13, 'plugin', 'com_plugins.plugin', 'extension_id' , 'name' , '#__extensions', 'PLG_ACTIONLOG_JOOMLA'), -(14, 'component_config', 'com_config.component', 'extension_id' , 'name', '', 'PLG_ACTIONLOG_JOOMLA'), -(15, 'contact', 'com_contact.contact', 'id', 'name', '#__contact_details', 'PLG_ACTIONLOG_JOOMLA'), -(16, 'module', 'com_modules.module', 'id' ,'title', '#__modules', 'PLG_ACTIONLOG_JOOMLA'), -(17, 'access_level', 'com_users.level', 'id' , 'title', '#__viewlevels', 'PLG_ACTIONLOG_JOOMLA'), -(18, 'banner_client', 'com_banners.client', 'id', 'name', '#__banner_clients', 'PLG_ACTIONLOG_JOOMLA'), -(19, 'application_config', 'com_config.application', '', 'name', '', 'PLG_ACTIONLOG_JOOMLA'); - - -SELECT setval('#__action_log_config_id_seq', 20, false); - --- --- Table structure for table `#__action_logs_users` --- - -CREATE TABLE "#__action_logs_users" ( - "user_id" integer NOT NULL, - "notify" integer NOT NULL, - "extensions" text NOT NULL, - PRIMARY KEY ("user_id") -); - -CREATE INDEX "#__action_logs_users_idx_notify" ON "#__action_logs_users" ("notify"); - -- -- Table structure for table `#__viewlevels` -- @@ -2315,20 +1057,6 @@ INSERT INTO "#__viewlevels" ("id", "title", "ordering", "rules") VALUES SELECT setval('#__viewlevels_id_seq', 7, false); --- --- Table structure for table `#__webauthn_credentials` --- - -CREATE TABLE IF NOT EXISTS "#__webauthn_credentials" ( - "id" varchar(1000) NOT NULL, - "user_id" varchar(128) NOT NULL, - "label" varchar(190) NOT NULL, - "credential" TEXT NOT NULL, - PRIMARY KEY ("id") -); - -CREATE INDEX "#__webauthn_credentials_user_id" ON "#__webauthn_credentials" ("user_id"); - -- -- Table structure for table `#__workflows` -- @@ -2452,90 +1180,4 @@ INSERT INTO "#__workflow_transitions" ("id", "asset_id", "published", "ordering" (3, 63, 1, 3, 1, 'Trash', '', -1, 3, NULL, 0), (4, 64, 1, 4, 1, 'Archive', '', -1, 4, NULL, 0); -SELECT setval('#__workflow_transitions_id_seq', 5, false); - --- --- Table structure for table `#__mail_templates` --- - -CREATE TABLE IF NOT EXISTS "#__mail_templates" ( - "template_id" varchar(127) NOT NULL DEFAULT '', - "language" char(7) NOT NULL DEFAULT '', - "subject" varchar(255) NOT NULL DEFAULT '', - "body" TEXT NOT NULL, - "htmlbody" TEXT NOT NULL, - "attachments" TEXT NOT NULL, - "params" TEXT NOT NULL, - CONSTRAINT "#__mail_templates_idx_template_id_language" UNIQUE ("template_id", "language") -); -CREATE INDEX "#__mail_templates_idx_template_id" ON "#__mail_templates" ("template_id"); -CREATE INDEX "#__mail_templates_idx_language" ON "#__mail_templates" ("language"); - --- --- Dumping data for table `#__mail_templates` --- - -INSERT INTO "#__mail_templates" ("template_id", "language", "subject", "body", "htmlbody", "attachments", "params") VALUES -('com_config.test_mail', '', 'COM_CONFIG_SENDMAIL_SUBJECT', 'COM_CONFIG_SENDMAIL_BODY', '', '', '{"tags":["sitename","method"]}'); - --- --- Here is SOUNDEX replacement for those who can't enable fuzzystrmatch module --- from contrib folder. --- This function comes from https://wiki.postgresql.org/wiki/Soundex --- and is distributed with GPL license. --- Thanks to its author, Marti Raudsepp, that published this piece of code. --- - -CREATE OR REPLACE FUNCTION soundex(input text) RETURNS text -IMMUTABLE STRICT COST 500 LANGUAGE plpgsql -AS $$ -DECLARE - soundex text = ''; - char text; - symbol text; - last_symbol text = ''; - pos int = 1; -BEGIN - WHILE length(soundex) < 4 LOOP - char = upper(substr(input, pos, 1)); - pos = pos + 1; - CASE char - WHEN '' THEN - -- End of input string - IF soundex = '' THEN - RETURN ''; - ELSE - RETURN rpad(soundex, 4, '0'); - END IF; - WHEN 'B', 'F', 'P', 'V' THEN - symbol = '1'; - WHEN 'C', 'G', 'J', 'K', 'Q', 'S', 'X', 'Z' THEN - symbol = '2'; - WHEN 'D', 'T' THEN - symbol = '3'; - WHEN 'L' THEN - symbol = '4'; - WHEN 'M', 'N' THEN - symbol = '5'; - WHEN 'R' THEN - symbol = '6'; - ELSE - -- Not a consonant; no output, but next similar consonant will be re-recorded - symbol = ''; - END CASE; - - IF soundex = '' THEN - -- First character; only accept strictly English ASCII characters - IF char ~>=~ 'A' AND char ~<=~ 'Z' THEN - soundex = char; - last_symbol = symbol; - END IF; - ELSIF last_symbol != symbol THEN - soundex = soundex || symbol; - last_symbol = symbol; - END IF; - END LOOP; - - RETURN soundex; -END; -$$; +SELECT setval('#__workflow_transitions_id_seq', 5, false); \ No newline at end of file diff --git a/installation/sql/postgresql/extensions.sql b/installation/sql/postgresql/extensions.sql new file mode 100644 index 0000000000000..8a75b81773df1 --- /dev/null +++ b/installation/sql/postgresql/extensions.sql @@ -0,0 +1,908 @@ +-- +-- Table structure for table `#__banners` +-- + +CREATE TABLE IF NOT EXISTS "#__banners" ( + "id" serial NOT NULL, + "cid" bigint DEFAULT 0 NOT NULL, + "type" bigint DEFAULT 0 NOT NULL, + "name" varchar(255) DEFAULT '' NOT NULL, + "alias" varchar(255) DEFAULT '' NOT NULL, + "imptotal" bigint DEFAULT 0 NOT NULL, + "impmade" bigint DEFAULT 0 NOT NULL, + "clicks" bigint DEFAULT 0 NOT NULL, + "clickurl" varchar(200) DEFAULT '' NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "catid" bigint DEFAULT 0 NOT NULL, + "description" text NOT NULL, + "custombannercode" varchar(2048) NOT NULL, + "sticky" smallint DEFAULT 0 NOT NULL, + "ordering" bigint DEFAULT 0 NOT NULL, + "metakey" text, + "params" text NOT NULL, + "own_prefix" smallint DEFAULT 0 NOT NULL, + "metakey_prefix" varchar(255) DEFAULT '' NOT NULL, + "purchase_type" smallint DEFAULT -1 NOT NULL, + "track_clicks" smallint DEFAULT -1 NOT NULL, + "track_impressions" smallint DEFAULT -1 NOT NULL, + "checked_out" bigint DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "publish_up" timestamp without time zone, + "publish_down" timestamp without time zone, + "reset" timestamp without time zone, + "created" timestamp without time zone NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "created_by" bigint DEFAULT 0 NOT NULL, + "created_by_alias" varchar(255) DEFAULT '' NOT NULL, + "modified" timestamp without time zone NOT NULL, + "modified_by" bigint DEFAULT 0 NOT NULL, + "version" bigint DEFAULT 1 NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__banners_idx_state" ON "#__banners" ("state"); +CREATE INDEX "#__banners_idx_own_prefix" ON "#__banners" ("own_prefix"); +CREATE INDEX "#__banners_idx_metakey_prefix" ON "#__banners" ("metakey_prefix"); +CREATE INDEX "#__banners_idx_banner_catid" ON "#__banners" ("catid"); +CREATE INDEX "#__banners_idx_language" ON "#__banners" ("language"); + +-- +-- Table structure for table `#__banner_clients` +-- + +CREATE TABLE IF NOT EXISTS "#__banner_clients" ( + "id" serial NOT NULL, + "name" varchar(255) DEFAULT '' NOT NULL, + "contact" varchar(255) DEFAULT '' NOT NULL, + "email" varchar(255) DEFAULT '' NOT NULL, + "extrainfo" text NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "checked_out" bigint DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "metakey" text, + "own_prefix" smallint DEFAULT 0 NOT NULL, + "metakey_prefix" varchar(255) DEFAULT '' NOT NULL, + "purchase_type" smallint DEFAULT -1 NOT NULL, + "track_clicks" smallint DEFAULT -1 NOT NULL, + "track_impressions" smallint DEFAULT -1 NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__banner_clients_idx_own_prefix" ON "#__banner_clients" ("own_prefix"); +CREATE INDEX "#__banner_clients_idx_metakey_prefix" ON "#__banner_clients" ("metakey_prefix"); + +-- +-- Table structure for table `#__banner_tracks` +-- + +CREATE TABLE IF NOT EXISTS "#__banner_tracks" ( + "track_date" timestamp without time zone NOT NULL, + "track_type" bigint NOT NULL, + "banner_id" bigint NOT NULL, + "count" bigint DEFAULT 0 NOT NULL, + PRIMARY KEY ("track_date", "track_type", "banner_id") +); +CREATE INDEX "#__banner_tracks_idx_track_date" ON "#__banner_tracks" ("track_date"); +CREATE INDEX "#__banner_tracks_idx_track_type" ON "#__banner_tracks" ("track_type"); +CREATE INDEX "#__banner_tracks_idx_banner_id" ON "#__banner_tracks" ("banner_id"); + +-- +-- Table structure for table `#__contact_details` +-- + +CREATE TABLE IF NOT EXISTS "#__contact_details" ( + "id" serial NOT NULL, + "name" varchar(255) NOT NULL, + "alias" varchar(255) NOT NULL, + "con_position" varchar(255), + "address" text, + "suburb" varchar(100), + "state" varchar(100), + "country" varchar(100), + "postcode" varchar(100), + "telephone" varchar(255), + "fax" varchar(255), + "misc" text, + "image" varchar(255), + "email_to" varchar(255), + "default_con" smallint NOT NULL DEFAULT 0, + "published" smallint NOT NULL DEFAULT 0, + "checked_out" bigint NOT NULL DEFAULT 0, + "checked_out_time" timestamp without time zone, + "ordering" bigint NOT NULL DEFAULT 0, + "params" text NOT NULL, + "user_id" bigint NOT NULL DEFAULT 0, + "catid" bigint NOT NULL DEFAULT 0, + "access" bigint NOT NULL DEFAULT 0, + "mobile" varchar(255) NOT NULL DEFAULT '', + "webpage" varchar(255) NOT NULL DEFAULT '', + "sortname1" varchar(255) NOT NULL DEFAULT '', + "sortname2" varchar(255) NOT NULL DEFAULT '', + "sortname3" varchar(255) NOT NULL DEFAULT '', + "language" varchar(7) NOT NULL, + "created" timestamp without time zone NOT NULL, + "created_by" integer NOT NULL DEFAULT 0, + "created_by_alias" varchar(255) NOT NULL DEFAULT '', + "modified" timestamp without time zone NOT NULL, + "modified_by" integer NOT NULL DEFAULT 0, + "metakey" text, + "metadesc" text NOT NULL, + "metadata" text NOT NULL, + "featured" smallint NOT NULL DEFAULT 0, + "publish_up" timestamp without time zone, + "publish_down" timestamp without time zone, + "version" bigint NOT NULL DEFAULT 1, + "hits" bigint NOT NULL DEFAULT 0, + PRIMARY KEY ("id") +); +CREATE INDEX "#__contact_details_idx_access" ON "#__contact_details" ("access"); +CREATE INDEX "#__contact_details_idx_checkout" ON "#__contact_details" ("checked_out"); +CREATE INDEX "#__contact_details_idx_state" ON "#__contact_details" ("published"); +CREATE INDEX "#__contact_details_idx_catid" ON "#__contact_details" ("catid"); +CREATE INDEX "#__contact_details_idx_createdby" ON "#__contact_details" ("created_by"); +CREATE INDEX "#__contact_details_idx_featured_catid" ON "#__contact_details" ("featured", "catid"); +CREATE INDEX "#__contact_details_idx_language" ON "#__contact_details" ("language"); + +COMMENT ON COLUMN "#__contact_details"."featured" IS 'Set if contact is featured.'; + +-- +-- Table structure for table `#__content` +-- + +CREATE TABLE IF NOT EXISTS "#__content" ( + "id" serial NOT NULL, + "asset_id" bigint DEFAULT 0 NOT NULL, + "title" varchar(255) DEFAULT '' NOT NULL, + "alias" varchar(255) DEFAULT '' NOT NULL, + "introtext" text NOT NULL, + "fulltext" text NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "catid" bigint DEFAULT 0 NOT NULL, + "created" timestamp without time zone NOT NULL, + "created_by" bigint DEFAULT 0 NOT NULL, + "created_by_alias" varchar(255) DEFAULT '' NOT NULL, + "modified" timestamp without time zone NOT NULL, + "modified_by" bigint DEFAULT 0 NOT NULL, + "checked_out" bigint DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "publish_up" timestamp without time zone, + "publish_down" timestamp without time zone, + "images" text NOT NULL, + "urls" text NOT NULL, + "attribs" varchar(5120) NOT NULL, + "version" bigint DEFAULT 1 NOT NULL, + "ordering" bigint DEFAULT 0 NOT NULL, + "metakey" text, + "metadesc" text NOT NULL, + "access" bigint DEFAULT 0 NOT NULL, + "hits" bigint DEFAULT 0 NOT NULL, + "metadata" text NOT NULL, + "featured" smallint DEFAULT 0 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "note" varchar(255) DEFAULT '' NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__content_idx_access" ON "#__content" ("access"); +CREATE INDEX "#__content_idx_checkout" ON "#__content" ("checked_out"); +CREATE INDEX "#__content_idx_state" ON "#__content" ("state"); +CREATE INDEX "#__content_idx_catid" ON "#__content" ("catid"); +CREATE INDEX "#__content_idx_createdby" ON "#__content" ("created_by"); +CREATE INDEX "#__content_idx_featured_catid" ON "#__content" ("featured", "catid"); +CREATE INDEX "#__content_idx_language" ON "#__content" ("language"); +CREATE INDEX "#__content_idx_alias" ON "#__content" ("alias"); + +COMMENT ON COLUMN "#__content"."asset_id" IS 'FK to the #__assets table.'; +COMMENT ON COLUMN "#__content"."featured" IS 'Set if article is featured.'; +COMMENT ON COLUMN "#__content"."language" IS 'The language code for the article.'; + + +-- +-- Table structure for table `#__content_frontpage` +-- + +CREATE TABLE IF NOT EXISTS "#__content_frontpage" ( + "content_id" bigint DEFAULT 0 NOT NULL, + "ordering" bigint DEFAULT 0 NOT NULL, + "featured_up" timestamp without time zone, + "featured_down" timestamp without time zone, + PRIMARY KEY ("content_id") +); + +-- +-- Table structure for table `#__content_rating` +-- + +CREATE TABLE IF NOT EXISTS "#__content_rating" ( + "content_id" bigint DEFAULT 0 NOT NULL, + "rating_sum" bigint DEFAULT 0 NOT NULL, + "rating_count" bigint DEFAULT 0 NOT NULL, + "lastip" varchar(50) DEFAULT '' NOT NULL, + PRIMARY KEY ("content_id") +); + +-- +-- Table structure for table `#__finder_filters` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_filters" ( + "filter_id" serial NOT NULL, + "title" varchar(255) NOT NULL, + "alias" varchar(255) NOT NULL, + "state" smallint DEFAULT 1 NOT NULL, + "created" timestamp without time zone NOT NULL, + "created_by" integer DEFAULT 0 NOT NULL, + "created_by_alias" varchar(255) DEFAULT '' NOT NULL, + "modified" timestamp without time zone NOT NULL, + "modified_by" integer DEFAULT 0 NOT NULL, + "checked_out" integer DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "map_count" integer DEFAULT 0 NOT NULL, + "data" text, + "params" text, + PRIMARY KEY ("filter_id") +); + +-- +-- Table structure for table `#__finder_links` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_links" ( + "link_id" serial NOT NULL, + "url" varchar(255) NOT NULL, + "route" varchar(255) NOT NULL, + "title" varchar(400) DEFAULT NULL, + "description" text, + "indexdate" timestamp without time zone NOT NULL, + "md5sum" varchar(32) DEFAULT NULL, + "published" smallint DEFAULT 1 NOT NULL, + "state" integer DEFAULT 1 NOT NULL, + "access" integer DEFAULT 0 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "publish_start_date" timestamp without time zone, + "publish_end_date" timestamp without time zone, + "start_date" timestamp without time zone, + "end_date" timestamp without time zone, + "list_price" numeric(8,2) DEFAULT 0 NOT NULL, + "sale_price" numeric(8,2) DEFAULT 0 NOT NULL, + "type_id" bigint NOT NULL, + "object" bytea, + PRIMARY KEY ("link_id") +); +CREATE INDEX "#__finder_links_idx_type" on "#__finder_links" ("type_id"); +CREATE INDEX "#__finder_links_idx_title" on "#__finder_links" ("title"); +CREATE INDEX "#__finder_links_idx_md5" on "#__finder_links" ("md5sum"); +CREATE INDEX "#__finder_links_idx_language" on "#__finder_links" ("language"); +CREATE INDEX "#__finder_links_idx_url" on "#__finder_links" (substr(url,0,76)); +CREATE INDEX "#__finder_links_idx_published_list" on "#__finder_links" ("published", "state", "access", "publish_start_date", "publish_end_date", "list_price"); +CREATE INDEX "#__finder_links_idx_published_sale" on "#__finder_links" ("published", "state", "access", "publish_start_date", "publish_end_date", "sale_price"); + +-- +-- Table structure for table `#__finder_links_terms` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_links_terms" ( + "link_id" integer NOT NULL, + "term_id" integer NOT NULL, + "weight" numeric(8,2) DEFAULT 0 NOT NULL, + PRIMARY KEY ("link_id", "term_id") +); +CREATE INDEX "#__finder_links_terms_idx_term_weight" on "#__finder_links_terms" ("term_id", "weight"); +CREATE INDEX "#__finder_links_terms_idx_link_term_weight" on "#__finder_links_terms" ("link_id", "term_id", "weight"); + +-- +-- Table structure for table `#__finder_logging` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_logging" ( + "searchterm" character varying(255) NOT NULL DEFAULT '', + "md5sum" character varying(32) NOT NULL DEFAULT '', + "query" bytea NOT NULL, + "hits" integer NOT NULL DEFAULT 1, + "results" integer NOT NULL DEFAULT 0, + PRIMARY KEY ("md5sum") +); +CREATE INDEX "#__finder_logging_idx_md5sum" on "#__finder_logging" ("md5sum"); +CREATE INDEX "#__finder_logging_idx_searchterm" on "#__finder_logging" ("searchterm"); + +-- +-- Table structure for table `#__finder_taxonomy` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_taxonomy" ( + "id" serial NOT NULL, + "parent_id" integer DEFAULT 0 NOT NULL, + "lft" integer DEFAULT 0 NOT NULL, + "rgt" integer DEFAULT 0 NOT NULL, + "level" integer DEFAULT 0 NOT NULL, + "path" VARCHAR(400) NOT NULL DEFAULT '', + "title" VARCHAR(255) NOT NULL DEFAULT '', + "alias" VARCHAR(400) NOT NULL DEFAULT '', + "state" smallint DEFAULT 1 NOT NULL, + "access" smallint DEFAULT 1 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__finder_taxonomy_state" on "#__finder_taxonomy" ("state"); +CREATE INDEX "#__finder_taxonomy_access" on "#__finder_taxonomy" ("access"); +CREATE INDEX "#__finder_taxonomy_path" on "#__finder_taxonomy" ("path"); +CREATE INDEX "#__finder_taxonomy_lft_rgt" on "#__finder_taxonomy" ("lft", "rgt"); +CREATE INDEX "#__finder_taxonomy_alias" on "#__finder_taxonomy" ("alias"); +CREATE INDEX "#__finder_taxonomy_language" on "#__finder_taxonomy" ("language"); +CREATE INDEX "#__finder_taxonomy_idx_parent_published" on "#__finder_taxonomy" ("parent_id", "state", "access"); + +-- +-- Dumping data for table `#__finder_taxonomy` +-- + +INSERT INTO "#__finder_taxonomy" ("id", "parent_id", "lft", "rgt", "level", "path", "title", "alias", "state", "access", "language") VALUES +(1, 0, 0, 1, 0, '', 'ROOT', 'root', 1, 1, '*'); + +SELECT setval('#__finder_taxonomy_id_seq', 2, false); + +-- +-- Table structure for table `#__finder_taxonomy_map` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_taxonomy_map" ( + "link_id" integer NOT NULL, + "node_id" integer NOT NULL, + PRIMARY KEY ("link_id", "node_id") +); +CREATE INDEX "#__finder_taxonomy_map_link_id" on "#__finder_taxonomy_map" ("link_id"); +CREATE INDEX "#__finder_taxonomy_map_node_id" on "#__finder_taxonomy_map" ("node_id"); + +-- +-- Table structure for table `#__finder_terms` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_terms" ( + "term_id" serial NOT NULL, + "term" varchar(75) NOT NULL, + "stem" varchar(75) DEFAULT '' NOT NULL, + "common" smallint DEFAULT 0 NOT NULL, + "phrase" smallint DEFAULT 0 NOT NULL, + "weight" numeric(8,2) DEFAULT 0 NOT NULL, + "soundex" varchar(75) DEFAULT '' NOT NULL, + "links" integer DEFAULT 0 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + PRIMARY KEY ("term_id"), + CONSTRAINT "#__finder_terms_idx_term_language" UNIQUE ("term", "language") +); +CREATE INDEX "#__finder_terms_idx_term_phrase" on "#__finder_terms" ("term", "phrase"); +CREATE INDEX "#__finder_terms_idx_stem_phrase" on "#__finder_terms" ("stem", "phrase"); +CREATE INDEX "#__finder_terms_idx_soundex_phrase" on "#__finder_terms" ("soundex", "phrase"); +CREATE INDEX "#__finder_terms_idx_language" on "#__finder_terms" ("language"); + +-- +-- Table structure for table `#__finder_terms_common` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_terms_common" ( + "term" varchar(75) NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "custom" integer DEFAULT 0 NOT NULL, + CONSTRAINT "#__finder_terms_common_idx_term_language" UNIQUE ("term", "language") +); +CREATE INDEX "#__finder_terms_common_idx_lang" on "#__finder_terms_common" ("language"); + +-- +-- Dumping data for table `#__finder_terms_common` +-- + +INSERT INTO "#__finder_terms_common" ("term", "language", "custom") VALUES +('i', 'en', 0), +('me', 'en', 0), +('my', 'en', 0), +('myself', 'en', 0), +('we', 'en', 0), +('our', 'en', 0), +('ours', 'en', 0), +('ourselves', 'en', 0), +('you', 'en', 0), +('your', 'en', 0), +('yours', 'en', 0), +('yourself', 'en', 0), +('yourselves', 'en', 0), +('he', 'en', 0), +('him', 'en', 0), +('his', 'en', 0), +('himself', 'en', 0), +('she', 'en', 0), +('her', 'en', 0), +('hers', 'en', 0), +('herself', 'en', 0), +('it', 'en', 0), +('its', 'en', 0), +('itself', 'en', 0), +('they', 'en', 0), +('them', 'en', 0), +('their', 'en', 0), +('theirs', 'en', 0), +('themselves', 'en', 0), +('what', 'en', 0), +('which', 'en', 0), +('who', 'en', 0), +('whom', 'en', 0), +('this', 'en', 0), +('that', 'en', 0), +('these', 'en', 0), +('those', 'en', 0), +('am', 'en', 0), +('is', 'en', 0), +('are', 'en', 0), +('was', 'en', 0), +('were', 'en', 0), +('be', 'en', 0), +('been', 'en', 0), +('being', 'en', 0), +('have', 'en', 0), +('has', 'en', 0), +('had', 'en', 0), +('having', 'en', 0), +('do', 'en', 0), +('does', 'en', 0), +('did', 'en', 0), +('doing', 'en', 0), +('would', 'en', 0), +('should', 'en', 0), +('could', 'en', 0), +('ought', 'en', 0), +('i''m', 'en', 0), +('you''re', 'en', 0), +('he''s', 'en', 0), +('she''s', 'en', 0), +('it''s', 'en', 0), +('we''re', 'en', 0), +('they''re', 'en', 0), +('i''ve', 'en', 0), +('you''ve', 'en', 0), +('we''ve', 'en', 0), +('they''ve', 'en', 0), +('i''d', 'en', 0), +('you''d', 'en', 0), +('he''d', 'en', 0), +('she''d', 'en', 0), +('we''d', 'en', 0), +('they''d', 'en', 0), +('i''ll', 'en', 0), +('you''ll', 'en', 0), +('he''ll', 'en', 0), +('she''ll', 'en', 0), +('we''ll', 'en', 0), +('they''ll', 'en', 0), +('isn''t', 'en', 0), +('aren''t', 'en', 0), +('wasn''t', 'en', 0), +('weren''t', 'en', 0), +('hasn''t', 'en', 0), +('haven''t', 'en', 0), +('hadn''t', 'en', 0), +('doesn''t', 'en', 0), +('don''t', 'en', 0), +('didn''t', 'en', 0), +('won''t', 'en', 0), +('wouldn''t', 'en', 0), +('shan''t', 'en', 0), +('shouldn''t', 'en', 0), +('can''t', 'en', 0), +('cannot', 'en', 0), +('couldn''t', 'en', 0), +('mustn''t', 'en', 0), +('let''s', 'en', 0), +('that''s', 'en', 0), +('who''s', 'en', 0), +('what''s', 'en', 0), +('here''s', 'en', 0), +('there''s', 'en', 0), +('when''s', 'en', 0), +('where''s', 'en', 0), +('why''s', 'en', 0), +('how''s', 'en', 0), +('a', 'en', 0), +('an', 'en', 0), +('the', 'en', 0), +('and', 'en', 0), +('but', 'en', 0), +('if', 'en', 0), +('or', 'en', 0), +('because', 'en', 0), +('as', 'en', 0), +('until', 'en', 0), +('while', 'en', 0), +('of', 'en', 0), +('at', 'en', 0), +('by', 'en', 0), +('for', 'en', 0), +('with', 'en', 0), +('about', 'en', 0), +('against', 'en', 0), +('between', 'en', 0), +('into', 'en', 0), +('through', 'en', 0), +('during', 'en', 0), +('before', 'en', 0), +('after', 'en', 0), +('above', 'en', 0), +('below', 'en', 0), +('to', 'en', 0), +('from', 'en', 0), +('up', 'en', 0), +('down', 'en', 0), +('in', 'en', 0), +('out', 'en', 0), +('on', 'en', 0), +('off', 'en', 0), +('over', 'en', 0), +('under', 'en', 0), +('again', 'en', 0), +('further', 'en', 0), +('then', 'en', 0), +('once', 'en', 0), +('here', 'en', 0), +('there', 'en', 0), +('when', 'en', 0), +('where', 'en', 0), +('why', 'en', 0), +('how', 'en', 0), +('all', 'en', 0), +('any', 'en', 0), +('both', 'en', 0), +('each', 'en', 0), +('few', 'en', 0), +('more', 'en', 0), +('most', 'en', 0), +('other', 'en', 0), +('some', 'en', 0), +('such', 'en', 0), +('no', 'en', 0), +('nor', 'en', 0), +('not', 'en', 0), +('only', 'en', 0), +('own', 'en', 0), +('same', 'en', 0), +('so', 'en', 0), +('than', 'en', 0), +('too', 'en', 0), +('very', 'en', 0); + +-- +-- Table structure for table `#__finder_tokens` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_tokens" ( + "term" varchar(75) NOT NULL, + "stem" varchar(75) DEFAULT '' NOT NULL, + "common" smallint DEFAULT 0 NOT NULL, + "phrase" smallint DEFAULT 0 NOT NULL, + "weight" numeric(8,2) DEFAULT 1 NOT NULL, + "context" smallint DEFAULT 2 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL +); +CREATE INDEX "#__finder_tokens_idx_word" on "#__finder_tokens" ("term"); +CREATE INDEX "#__finder_tokens_idx_stem" on "#__finder_tokens" ("stem"); +CREATE INDEX "#__finder_tokens_idx_context" on "#__finder_tokens" ("context"); +CREATE INDEX "#__finder_tokens_idx_language" on "#__finder_tokens" ("language"); + +-- +-- Table structure for table `#__finder_tokens_aggregate` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_tokens_aggregate" ( + "term_id" integer NOT NULL, + "term" varchar(75) NOT NULL, + "stem" varchar(75) DEFAULT '' NOT NULL, + "common" smallint DEFAULT 0 NOT NULL, + "phrase" smallint DEFAULT 0 NOT NULL, + "term_weight" numeric(8,2) NOT NULL DEFAULT 0, + "context" smallint DEFAULT 2 NOT NULL, + "context_weight" numeric(8,2) NOT NULL DEFAULT 0, + "total_weight" numeric(8,2) NOT NULL DEFAULT 0, + "language" varchar(7) DEFAULT '' NOT NULL +); +CREATE INDEX "#__finder_tokens_aggregate_token" on "#__finder_tokens_aggregate" ("term"); +CREATE INDEX "_#__finder_tokens_aggregate_keyword_id" on "#__finder_tokens_aggregate" ("term_id"); + +-- +-- Table structure for table `#__finder_types` +-- + +CREATE TABLE IF NOT EXISTS "#__finder_types" ( + "id" serial NOT NULL, + "title" varchar(100) NOT NULL, + "mime" varchar(100) DEFAULT '' NOT NULL, + PRIMARY KEY ("id"), + CONSTRAINT "#__finder_types_title" UNIQUE ("title") +); + +-- +-- Table structure for table `#__messages` +-- + +CREATE TABLE IF NOT EXISTS "#__messages" ( + "message_id" serial NOT NULL, + "user_id_from" bigint DEFAULT 0 NOT NULL, + "user_id_to" bigint DEFAULT 0 NOT NULL, + "folder_id" smallint DEFAULT 0 NOT NULL, + "date_time" timestamp without time zone NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "priority" smallint DEFAULT 0 NOT NULL, + "subject" varchar(255) DEFAULT '' NOT NULL, + "message" text NOT NULL, + PRIMARY KEY ("message_id") +); +CREATE INDEX "#__messages_useridto_state" ON "#__messages" ("user_id_to", "state"); + +-- +-- Table structure for table `#__messages_cfg` +-- + +CREATE TABLE IF NOT EXISTS "#__messages_cfg" ( + "user_id" bigint DEFAULT 0 NOT NULL, + "cfg_name" varchar(100) DEFAULT '' NOT NULL, + "cfg_value" varchar(255) DEFAULT '' NOT NULL, + CONSTRAINT "#__messages_cfg_idx_user_var_name" UNIQUE ("user_id", "cfg_name") +); + +-- +-- Table structure for table `#__newsfeeds` +-- + +CREATE TABLE IF NOT EXISTS "#__newsfeeds" ( + "catid" bigint DEFAULT 0 NOT NULL, + "id" serial NOT NULL, + "name" varchar(100) DEFAULT '' NOT NULL, + "alias" varchar(100) DEFAULT '' NOT NULL, + "link" varchar(2048) DEFAULT '' NOT NULL, + "published" smallint DEFAULT 0 NOT NULL, + "numarticles" bigint DEFAULT 1 NOT NULL, + "cache_time" bigint DEFAULT 3600 NOT NULL, + "checked_out" integer DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "ordering" bigint DEFAULT 0 NOT NULL, + "rtl" smallint DEFAULT 0 NOT NULL, + "access" bigint DEFAULT 0 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "params" text NOT NULL, + "created" timestamp without time zone NOT NULL, + "created_by" integer DEFAULT 0 NOT NULL, + "created_by_alias" varchar(255) DEFAULT '' NOT NULL, + "modified" timestamp without time zone NOT NULL, + "modified_by" integer DEFAULT 0 NOT NULL, + "metakey" text, + "metadesc" text NOT NULL, + "metadata" text NOT NULL, + "publish_up" timestamp without time zone, + "publish_down" timestamp without time zone, + "description" text NOT NULL, + "version" bigint DEFAULT 1 NOT NULL, + "hits" bigint DEFAULT 0 NOT NULL, + "images" text NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__newsfeeds_idx_access" ON "#__newsfeeds" ("access"); +CREATE INDEX "#__newsfeeds_idx_checkout" ON "#__newsfeeds" ("checked_out"); +CREATE INDEX "#__newsfeeds_idx_state" ON "#__newsfeeds" ("published"); +CREATE INDEX "#__newsfeeds_idx_catid" ON "#__newsfeeds" ("catid"); +CREATE INDEX "#__newsfeeds_idx_createdby" ON "#__newsfeeds" ("created_by"); +CREATE INDEX "#__newsfeeds_idx_language" ON "#__newsfeeds" ("language"); + +-- +-- Table structure for table `#__privacy_requests` +-- + +CREATE TABLE "#__privacy_requests" ( + "id" serial NOT NULL, + "email" varchar(100) DEFAULT '' NOT NULL, + "requested_at" timestamp without time zone NOT NULL, + "status" smallint DEFAULT 0 NOT NULL, + "request_type" varchar(25) DEFAULT '' NOT NULL, + "confirm_token" varchar(100) DEFAULT '' NOT NULL, + "confirm_token_created_at" timestamp without time zone, + PRIMARY KEY ("id") +); + +-- +-- Table structure for table `#__privacy_consents` +-- + +CREATE TABLE "#__privacy_consents" ( + "id" serial NOT NULL, + "user_id" bigint DEFAULT 0 NOT NULL, + "state" smallint DEFAULT 1 NOT NULL, + "created" timestamp without time zone NOT NULL, + "subject" varchar(255) DEFAULT '' NOT NULL, + "body" text NOT NULL, + "remind" smallint DEFAULT 0 NOT NULL, + "token" varchar(100) DEFAULT '' NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__privacy_consents_idx_user_id" ON "#__privacy_consents" ("user_id"); + +-- +-- Table structure for table `#__redirect_links` +-- + +CREATE TABLE IF NOT EXISTS "#__redirect_links" ( + "id" serial NOT NULL, + "old_url" varchar(2048) NOT NULL, + "new_url" varchar(2048), + "referer" varchar(2048) NOT NULL, + "comment" varchar(255) DEFAULT '' NOT NULL, + "hits" bigint DEFAULT 0 NOT NULL, + "published" smallint NOT NULL, + "created_date" timestamp without time zone NOT NULL, + "modified_date" timestamp without time zone NOT NULL, + "header" integer DEFAULT 301 NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__redirect_links_idx_old_url" ON "#__redirect_links" ("old_url"); +CREATE INDEX "#__redirect_links_idx_link_modifed" ON "#__redirect_links" ("modified_date"); + +-- +-- Table: #__action_logs +-- +CREATE TABLE "#__action_logs" ( + "id" serial NOT NULL, + "message_language_key" varchar(255) NOT NULL DEFAULT '', + "message" text NOT NULL, + "log_date" timestamp without time zone NOT NULL, + "extension" varchar(50) NOT NULL DEFAULT '', + "user_id" integer DEFAULT 0 NOT NULL, + "item_id" integer DEFAULT 0 NOT NULL, + "ip_address" varchar(40) NOT NULL DEFAULT '0.0.0.0', + PRIMARY KEY ("id") +); + +CREATE INDEX "#__action_logs_idx_user_id" ON "#__action_logs" ("user_id"); +CREATE INDEX "#__action_logs_idx_user_id_logdate" ON "#__action_logs" ("user_id", "log_date"); +CREATE INDEX "#__action_logs_idx_user_id_extension" ON "#__action_logs" ("user_id", "extension"); +CREATE INDEX "#__action_logs_idx_extension_itemid" ON "#__action_logs" ("extension", "item_id"); + +-- +-- Table: #__action_logs_extensions +-- +CREATE TABLE "#__action_logs_extensions" ( + "id" serial NOT NULL, + "extension" varchar(50) NOT NULL DEFAULT '', + PRIMARY KEY ("id") +); + +-- +-- Dumping data for table `#__action_logs_extensions` +-- +INSERT INTO "#__action_logs_extensions" ("id", "extension") VALUES +(1, 'com_banners'), +(2, 'com_cache'), +(3, 'com_categories'), +(4, 'com_config'), +(5, 'com_contact'), +(6, 'com_content'), +(7, 'com_installer'), +(8, 'com_media'), +(9, 'com_menus'), +(10, 'com_messages'), +(11, 'com_modules'), +(12, 'com_newsfeeds'), +(13, 'com_plugins'), +(14, 'com_redirect'), +(15, 'com_tags'), +(16, 'com_templates'), +(17, 'com_users'), +(18, 'com_checkin'); + +SELECT setval('#__action_logs_extensions_id_seq', 19, false); +-- -------------------------------------------------------- + +-- +-- Table: #__action_log_config +-- +CREATE TABLE "#__action_log_config" ( + "id" serial NOT NULL, + "type_title" varchar(255) NOT NULL DEFAULT '', + "type_alias" varchar(255) NOT NULL DEFAULT '', + "id_holder" varchar(255) NULL, + "title_holder" varchar(255) NULL, + "table_name" varchar(255) NULL, + "text_prefix" varchar(255) NULL, + PRIMARY KEY ("id") +); + +-- +-- Dumping data for table `#__action_log_config` +-- +INSERT INTO "#__action_log_config" ("id", "type_title", "type_alias", "id_holder", "title_holder", "table_name", "text_prefix") VALUES +(1, 'article', 'com_content.article', 'id' ,'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), +(2, 'article', 'com_content.form', 'id', 'title' , '#__content', 'PLG_ACTIONLOG_JOOMLA'), +(3, 'banner', 'com_banners.banner', 'id' ,'name' , '#__banners', 'PLG_ACTIONLOG_JOOMLA'), +(4, 'user_note', 'com_users.note', 'id', 'subject' ,'#__user_notes', 'PLG_ACTIONLOG_JOOMLA'), +(5, 'media', 'com_media.file', '' , 'name' , '', 'PLG_ACTIONLOG_JOOMLA'), +(6, 'category', 'com_categories.category', 'id' , 'title' , '#__categories', 'PLG_ACTIONLOG_JOOMLA'), +(7, 'menu', 'com_menus.menu', 'id' ,'title' , '#__menu_types', 'PLG_ACTIONLOG_JOOMLA'), +(8, 'menu_item', 'com_menus.item', 'id' , 'title' , '#__menu', 'PLG_ACTIONLOG_JOOMLA'), +(9, 'newsfeed', 'com_newsfeeds.newsfeed', 'id' ,'name' , '#__newsfeeds', 'PLG_ACTIONLOG_JOOMLA'), +(10, 'link', 'com_redirect.link', 'id', 'old_url' , '#__redirect_links', 'PLG_ACTIONLOG_JOOMLA'), +(11, 'tag', 'com_tags.tag', 'id', 'title' , '#__tags', 'PLG_ACTIONLOG_JOOMLA'), +(12, 'style', 'com_templates.style', 'id' , 'title' , '#__template_styles', 'PLG_ACTIONLOG_JOOMLA'), +(13, 'plugin', 'com_plugins.plugin', 'extension_id' , 'name' , '#__extensions', 'PLG_ACTIONLOG_JOOMLA'), +(14, 'component_config', 'com_config.component', 'extension_id' , 'name', '', 'PLG_ACTIONLOG_JOOMLA'), +(15, 'contact', 'com_contact.contact', 'id', 'name', '#__contact_details', 'PLG_ACTIONLOG_JOOMLA'), +(16, 'module', 'com_modules.module', 'id' ,'title', '#__modules', 'PLG_ACTIONLOG_JOOMLA'), +(17, 'access_level', 'com_users.level', 'id' , 'title', '#__viewlevels', 'PLG_ACTIONLOG_JOOMLA'), +(18, 'banner_client', 'com_banners.client', 'id', 'name', '#__banner_clients', 'PLG_ACTIONLOG_JOOMLA'), +(19, 'application_config', 'com_config.application', '', 'name', '', 'PLG_ACTIONLOG_JOOMLA'); + + +SELECT setval('#__action_log_config_id_seq', 20, false); + +-- +-- Table structure for table `#__action_logs_users` +-- + +CREATE TABLE "#__action_logs_users" ( + "user_id" integer NOT NULL, + "notify" integer NOT NULL, + "extensions" text NOT NULL, + PRIMARY KEY ("user_id") +); + +CREATE INDEX "#__action_logs_users_idx_notify" ON "#__action_logs_users" ("notify"); + +-- +-- Here is SOUNDEX replacement for those who can't enable fuzzystrmatch module +-- from contrib folder. +-- This function comes from https://wiki.postgresql.org/wiki/Soundex +-- and is distributed with GPL license. +-- Thanks to its author, Marti Raudsepp, that published this piece of code. +-- + +CREATE OR REPLACE FUNCTION soundex(input text) RETURNS text +IMMUTABLE STRICT COST 500 LANGUAGE plpgsql +AS $$ +DECLARE + soundex text = ''; + char text; + symbol text; + last_symbol text = ''; + pos int = 1; +BEGIN + WHILE length(soundex) < 4 LOOP + char = upper(substr(input, pos, 1)); + pos = pos + 1; + CASE char + WHEN '' THEN + -- End of input string + IF soundex = '' THEN + RETURN ''; + ELSE + RETURN rpad(soundex, 4, '0'); + END IF; + WHEN 'B', 'F', 'P', 'V' THEN + symbol = '1'; + WHEN 'C', 'G', 'J', 'K', 'Q', 'S', 'X', 'Z' THEN + symbol = '2'; + WHEN 'D', 'T' THEN + symbol = '3'; + WHEN 'L' THEN + symbol = '4'; + WHEN 'M', 'N' THEN + symbol = '5'; + WHEN 'R' THEN + symbol = '6'; + ELSE + -- Not a consonant; no output, but next similar consonant will be re-recorded + symbol = ''; + END CASE; + + IF soundex = '' THEN + -- First character; only accept strictly English ASCII characters + IF char ~>=~ 'A' AND char ~<=~ 'Z' THEN + soundex = char; + last_symbol = symbol; + END IF; + ELSIF last_symbol != symbol THEN + soundex = soundex || symbol; + last_symbol = symbol; + END IF; + END LOOP; + + RETURN soundex; +END; +$$; diff --git a/installation/sql/postgresql/supports.sql b/installation/sql/postgresql/supports.sql new file mode 100644 index 0000000000000..6498f8d0e6b17 --- /dev/null +++ b/installation/sql/postgresql/supports.sql @@ -0,0 +1,423 @@ +-- +-- Table structure for table `#__associations` +-- + +CREATE TABLE IF NOT EXISTS "#__associations" ( + "id" int NOT NULL, + "context" varchar(50) NOT NULL, + "key" char(32) NOT NULL, + CONSTRAINT "#__associations_idx_context_id" PRIMARY KEY ("context", "id") +); +CREATE INDEX "#__associations_idx_key" ON "#__associations" ("key"); + +COMMENT ON COLUMN "#__associations"."id" IS 'A reference to the associated item.'; +COMMENT ON COLUMN "#__associations"."context" IS 'The context of the associated item.'; +COMMENT ON COLUMN "#__associations"."key" IS 'The key for the association computed from an md5 on associated ids.'; + +-- +-- Table structure for table `#__categories` +-- + +CREATE TABLE IF NOT EXISTS "#__categories" ( + "id" serial NOT NULL, + "asset_id" bigint DEFAULT 0 NOT NULL, + "parent_id" integer DEFAULT 0 NOT NULL, + "lft" bigint DEFAULT 0 NOT NULL, + "rgt" bigint DEFAULT 0 NOT NULL, + "level" integer DEFAULT 0 NOT NULL, + "path" varchar(255) DEFAULT '' NOT NULL, + "extension" varchar(50) DEFAULT '' NOT NULL, + "title" varchar(255) DEFAULT '' NOT NULL, + "alias" varchar(255) DEFAULT '' NOT NULL, + "note" varchar(255) DEFAULT '' NOT NULL, + "description" text, + "published" smallint DEFAULT 0 NOT NULL, + "checked_out" bigint DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "access" bigint DEFAULT 0 NOT NULL, + "params" text, + "metadesc" varchar(1024) DEFAULT '' NOT NULL, + "metakey" varchar(1024) DEFAULT '' NOT NULL, + "metadata" varchar(2048) DEFAULT '' NOT NULL, + "created_user_id" integer DEFAULT 0 NOT NULL, + "created_time" timestamp without time zone NOT NULL, + "modified_user_id" integer DEFAULT 0 NOT NULL, + "modified_time" timestamp without time zone NOT NULL, + "hits" integer DEFAULT 0 NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "version" bigint DEFAULT 1 NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__categories_cat_idx" ON "#__categories" ("extension", "published", "access"); +CREATE INDEX "#__categories_idx_access" ON "#__categories" ("access"); +CREATE INDEX "#__categories_idx_checkout" ON "#__categories" ("checked_out"); +CREATE INDEX "#__categories_idx_path" ON "#__categories" ("path"); +CREATE INDEX "#__categories_idx_left_right" ON "#__categories" ("lft", "rgt"); +CREATE INDEX "#__categories_idx_alias" ON "#__categories" ("alias"); +CREATE INDEX "#__categories_idx_language" ON "#__categories" ("language"); + +COMMENT ON COLUMN "#__categories"."asset_id" IS 'FK to the #__assets table.'; +COMMENT ON COLUMN "#__categories"."metadesc" IS 'The meta description for the page.'; +COMMENT ON COLUMN "#__categories"."metakey" IS 'The keywords for the page.'; +COMMENT ON COLUMN "#__categories"."metadata" IS 'JSON encoded metadata properties.'; + +-- +-- Dumping data for table `#__categories` +-- + +INSERT INTO "#__categories" ("id", "asset_id", "parent_id", "lft", "rgt", "level", "path", "extension", "title", "alias", "note", "description", "published", "checked_out", "checked_out_time", "access", "params", "metadesc", "metakey", "metadata", "created_user_id", "created_time", "modified_user_id", "modified_time", "hits", "language", "version") VALUES +(1, 0, 0, 0, 11, 0, '', 'system', 'ROOT', 'root', '', '', 1, 0, NULL, 1, '{}', '', '', '{}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), +(2, 27, 1, 1, 2, 1, 'uncategorised', 'com_content', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":"","workflow_id":"use_default"}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), +(3, 28, 1, 3, 4, 1, 'uncategorised', 'com_banners', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), +(4, 29, 1, 5, 6, 1, 'uncategorised', 'com_contact', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), +(5, 30, 1, 7, 8, 1, 'uncategorised', 'com_newsfeeds', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1), +(7, 32, 1, 9, 10, 1, 'uncategorised', 'com_users', 'Uncategorised', 'uncategorised', '', '', 1, 0, NULL, 1, '{"category_layout":"","image":""}', '', '', '{"author":"","robots":""}', 42, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 0, '*', 1); + +SELECT setval('#__categories_id_seq', 8, false); + +-- +-- Table structure for table `#__content_types` +-- + +CREATE TABLE IF NOT EXISTS "#__content_types" ( + "type_id" serial NOT NULL, + "type_title" varchar(255) NOT NULL DEFAULT '', + "type_alias" varchar(255) NOT NULL DEFAULT '', + "table" varchar(2048) NOT NULL DEFAULT '', + "rules" text NOT NULL, + "field_mappings" text NOT NULL, + "router" varchar(255) NOT NULL DEFAULT '', + "content_history_options" varchar(5120) DEFAULT NULL, + PRIMARY KEY ("type_id") +); +CREATE INDEX "#__content_types_idx_alias" ON "#__content_types" ("type_alias"); + +COMMENT ON COLUMN "#__content_types"."content_history_options" IS 'JSON string for com_contenthistory options'; + +-- +-- Dumping data for table `#__content_types` +-- + +INSERT INTO "#__content_types" ("type_id", "type_title", "type_alias", "table", "rules", "field_mappings", "router", "content_history_options") VALUES +(1, 'Article', 'com_content.article', '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}}', 'ContentHelperRoute::getArticleRoute', '{"formFile":"administrator\\/components\\/com_content\\/forms\\/article.xml", "hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits", "ordering"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +(2, 'Contact', 'com_contact.contact', '{"special":{"dbtable":"#__contact_details","key":"id","type":"ContactTable","prefix":"Joomla\\\\Component\\\\Contact\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}', 'ContactHelperRoute::getContactRoute', '{"formFile":"administrator\\/components\\/com_contact\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[ {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ] }'), +(3, 'Newsfeed', 'com_newsfeeds.newsfeed', '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"NewsfeedTable","prefix":"Joomla\\\\Component\\\\Newsfeeds\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}', 'NewsfeedsHelperRoute::getNewsfeedRoute', '{"formFile":"administrator\\/components\\/com_newsfeeds\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +(4, 'User', 'com_users.user', '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerDate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "asset_id":"null"}, "special":{}}', '', ''), +(5, 'Article Category', 'com_content.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContentHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(6, 'Contact Category', 'com_contact.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContactHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(7, 'Newsfeeds Category', 'com_newsfeeds.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'NewsfeedsHelperRoute::getCategoryRoute', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(8, 'Tag', 'com_tags.tag', '{"special":{"dbtable":"#__tags","key":"tag_id","type":"TagTable","prefix":"Joomla\\\\Component\\\\Tags\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "asset_id":"null"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}', 'TagsHelperRoute::getTagRoute', '{"formFile":"administrator\\/components\\/com_tags\\/forms\\/tag.xml", "hideFields":["checked_out","checked_out_time","version", "lft", "rgt", "level", "path", "urls", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), +(9, 'Banner', 'com_banners.banner', '{"special":{"dbtable":"#__banners","key":"id","type":"BannerTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "asset_id":"null"}, "special":{"imptotal":"imptotal", "impmade":"impmade", "clicks":"clicks", "clickurl":"clickurl", "custombannercode":"custombannercode", "cid":"cid", "purchase_type":"purchase_type", "track_impressions":"track_impressions", "track_clicks":"track_clicks"}}', '','{"formFile":"administrator\\/components\\/com_banners\\/forms\\/banner.xml", "hideFields":["checked_out","checked_out_time","version", "reset"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "imptotal", "impmade", "reset"], "convertToInt":["publish_up", "publish_down", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}'), +(10, 'Banners Category', 'com_banners.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}','','{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'), +(11, 'Banner Client', 'com_banners.client', '{"special":{"dbtable":"#__banner_clients","key":"id","type":"ClientTable","prefix":"Joomla\\\\Component\\\\Banners\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_banners\\/forms\\/client.xml", "hideFields":["checked_out","checked_out_time"], "ignoreChanges":["checked_out", "checked_out_time"], "convertToInt":[], "displayLookup":[]}'), +(12, 'User Notes', 'com_users.note', '{"special":{"dbtable":"#__user_notes","key":"id","type":"NoteTable","prefix":"Joomla\\\\Component\\\\Users\\\\Administrator\\\\Table\\\\"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_users\\/forms\\/note.xml", "hideFields":["checked_out","checked_out_time", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time"], "convertToInt":["publish_up", "publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'), +(13, 'User Notes Category', 'com_users.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', '', '{"formFile":"administrator\\/components\\/com_categories\\/forms\\/category.xml", "hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'); + +SELECT setval('#__content_types_type_id_seq', 10000, false); + +-- +-- Table structure for table `#__contentitem_tag_map` +-- + +CREATE TABLE IF NOT EXISTS "#__contentitem_tag_map" ( + "type_alias" varchar(255) NOT NULL DEFAULT '', + "core_content_id" integer NOT NULL, + "content_item_id" integer NOT NULL, + "tag_id" integer NOT NULL, + "tag_date" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, + "type_id" integer NOT NULL, + PRIMARY KEY ("type_id", "content_item_id", "tag_id") +); +CREATE INDEX "#__contentitem_tag_map_idx_tag_type" ON "#__contentitem_tag_map" ("tag_id", "type_id"); +CREATE INDEX "#__contentitem_tag_map_idx_date_id" ON "#__contentitem_tag_map" ("tag_date", "tag_id"); +CREATE INDEX "#__contentitem_tag_map_idx_core_content_id" ON "#__contentitem_tag_map" ("core_content_id"); + +COMMENT ON COLUMN "#__contentitem_tag_map"."core_content_id" IS 'PK from the core content table'; +COMMENT ON COLUMN "#__contentitem_tag_map"."content_item_id" IS 'PK from the content type table'; +COMMENT ON COLUMN "#__contentitem_tag_map"."tag_id" IS 'PK from the tag table'; +COMMENT ON COLUMN "#__contentitem_tag_map"."tag_date" IS 'Date of most recent save for this tag-item'; +COMMENT ON COLUMN "#__contentitem_tag_map"."type_id" IS 'PK from the content_type table'; + +-- +-- Table structure for table `#__fields` +-- + +CREATE TABLE IF NOT EXISTS "#__fields" ( + "id" serial NOT NULL, + "asset_id" bigint DEFAULT 0 NOT NULL, + "context" varchar(255) DEFAULT '' NOT NULL, + "group_id" bigint DEFAULT 0 NOT NULL, + "title" varchar(255) DEFAULT '' NOT NULL, + "name" varchar(255) DEFAULT '' NOT NULL, + "label" varchar(255) DEFAULT '' NOT NULL, + "default_value" text, + "type" varchar(255) DEFAULT 'text' NOT NULL, + "note" varchar(255) DEFAULT '' NOT NULL, + "description" text NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "required" smallint DEFAULT 0 NOT NULL, + "checked_out" integer DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "ordering" bigint DEFAULT 0 NOT NULL, + "params" text NOT NULL, + "fieldparams" text NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "created_time" timestamp without time zone NOT NULL, + "created_user_id" bigint DEFAULT 0 NOT NULL, + "modified_time" timestamp without time zone NOT NULL, + "modified_by" bigint DEFAULT 0 NOT NULL, + "access" bigint DEFAULT 0 NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__fields_idx_checked_out" ON "#__fields" ("checked_out"); +CREATE INDEX "#__fields_idx_state" ON "#__fields" ("state"); +CREATE INDEX "#__fields_idx_created_user_id" ON "#__fields" ("created_user_id"); +CREATE INDEX "#__fields_idx_access" ON "#__fields" ("access"); +CREATE INDEX "#__fields_idx_context" ON "#__fields" ("context"); +CREATE INDEX "#__fields_idx_language" ON "#__fields" ("language"); + +-- +-- Table structure for table `#__fields_categories` +-- + +CREATE TABLE IF NOT EXISTS "#__fields_categories" ( + "field_id" bigint DEFAULT 0 NOT NULL, + "category_id" bigint DEFAULT 0 NOT NULL, + PRIMARY KEY ("field_id", "category_id") +); + +-- +-- Table structure for table `#__fields_groups` +-- + +CREATE TABLE IF NOT EXISTS "#__fields_groups" ( + "id" serial NOT NULL, + "asset_id" bigint DEFAULT 0 NOT NULL, + "context" varchar(255) DEFAULT '' NOT NULL, + "title" varchar(255) DEFAULT '' NOT NULL, + "note" varchar(255) DEFAULT '' NOT NULL, + "description" text NOT NULL, + "state" smallint DEFAULT 0 NOT NULL, + "checked_out" integer DEFAULT 0 NOT NULL, + "checked_out_time" timestamp without time zone, + "ordering" integer DEFAULT 0 NOT NULL, + "params" text NOT NULL, + "language" varchar(7) DEFAULT '' NOT NULL, + "created" timestamp without time zone NOT NULL, + "created_by" bigint DEFAULT 0 NOT NULL, + "modified" timestamp without time zone NOT NULL, + "modified_by" bigint DEFAULT 0 NOT NULL, + "access" bigint DEFAULT 1 NOT NULL, + PRIMARY KEY ("id") +); +CREATE INDEX "#__fields_groups_idx_checked_out" ON "#__fields_groups" ("checked_out"); +CREATE INDEX "#__fields_groups_idx_state" ON "#__fields_groups" ("state"); +CREATE INDEX "#__fields_groups_idx_created_by" ON "#__fields_groups" ("created_by"); +CREATE INDEX "#__fields_groups_idx_access" ON "#__fields_groups" ("access"); +CREATE INDEX "#__fields_groups_idx_context" ON "#__fields_groups" ("context"); +CREATE INDEX "#__fields_groups_idx_language" ON "#__fields_groups" ("language"); + +-- +-- Table structure for table `#__fields_values` +-- + +CREATE TABLE IF NOT EXISTS "#__fields_values" ( +"field_id" bigint DEFAULT 0 NOT NULL, +"item_id" varchar(255) DEFAULT '' NOT NULL, +"value" text +); +CREATE INDEX "#__fields_values_idx_field_id" ON "#__fields_values" ("field_id"); +CREATE INDEX "#__fields_values_idx_item_id" ON "#__fields_values" ("item_id"); + +-- +-- Table structure for table `#__overrider` +-- + +CREATE TABLE IF NOT EXISTS "#__overrider" ( + "id" serial NOT NULL, + "constant" varchar(255) NOT NULL, + "string" text NOT NULL, + "file" varchar(255) NOT NULL, + PRIMARY KEY ("id") +); + +COMMENT ON COLUMN "#__overrider"."id" IS 'Primary Key'; + +-- +-- Table structure for table `#__postinstall_messages` +-- + +CREATE TABLE IF NOT EXISTS "#__postinstall_messages" ( + "postinstall_message_id" serial NOT NULL, + "extension_id" bigint NOT NULL DEFAULT 700, + "title_key" varchar(255) NOT NULL DEFAULT '', + "description_key" varchar(255) NOT NULL DEFAULT '', + "action_key" varchar(255) NOT NULL DEFAULT '', + "language_extension" varchar(255) NOT NULL DEFAULT 'com_postinstall', + "language_client_id" smallint NOT NULL DEFAULT 1, + "type" varchar(10) NOT NULL DEFAULT 'link', + "action_file" varchar(255) DEFAULT '', + "action" varchar(255) DEFAULT '', + "condition_file" varchar(255) DEFAULT NULL, + "condition_method" varchar(255) DEFAULT NULL, + "version_introduced" varchar(255) NOT NULL DEFAULT '3.2.0', + "enabled" smallint NOT NULL DEFAULT 1, + PRIMARY KEY ("postinstall_message_id") +); + +COMMENT ON COLUMN "#__postinstall_messages"."extension_id" IS 'FK to jos_extensions'; +COMMENT ON COLUMN "#__postinstall_messages"."title_key" IS 'Lang key for the title'; +COMMENT ON COLUMN "#__postinstall_messages"."description_key" IS 'Lang key for description'; +COMMENT ON COLUMN "#__postinstall_messages"."language_extension" IS 'Extension holding lang keys'; +COMMENT ON COLUMN "#__postinstall_messages"."type" IS 'Message type - message, link, action'; +COMMENT ON COLUMN "#__postinstall_messages"."action_file" IS 'RAD URI to the PHP file containing action method'; +COMMENT ON COLUMN "#__postinstall_messages"."action" IS 'Action method name or URL'; +COMMENT ON COLUMN "#__postinstall_messages"."condition_file" IS 'RAD URI to file holding display condition method'; +COMMENT ON COLUMN "#__postinstall_messages"."condition_method" IS 'Display condition method, must return boolean'; +COMMENT ON COLUMN "#__postinstall_messages"."version_introduced" IS 'Version when this message was introduced'; + +-- +-- Dumping data for table `#__postinstall_messages` +-- + +INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") +SELECT "extension_id", 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION', 'plg_twofactorauth_totp', 1, 'action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_condition', '3.2.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; +INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") +SELECT "extension_id", 'COM_CPANEL_WELCOME_BEGINNERS_TITLE', 'COM_CPANEL_WELCOME_BEGINNERS_MESSAGE', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.2.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; +INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") +SELECT "extension_id", 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE', 'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/statscollection.php', 'admin_postinstall_statscollection_condition', '3.5.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; +INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") +SELECT "extension_id", 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION', 'plg_system_updatenotification', 1, 'action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_condition', '3.6.3', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; +INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") +SELECT "extension_id", 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheaders', 1, 'action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_condition', '4.0.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla'; + +-- +-- Table structure for table `#__ucm_base` +-- + +CREATE TABLE IF NOT EXISTS "#__ucm_base" ( + "ucm_id" serial NOT NULL, + "ucm_item_id" bigint NOT NULL, + "ucm_type_id" bigint NOT NULL, + "ucm_language_id" bigint NOT NULL, + PRIMARY KEY ("ucm_id") +); +CREATE INDEX "#__ucm_base_ucm_item_id" ON "#__ucm_base" ("ucm_item_id"); +CREATE INDEX "#__ucm_base_ucm_type_id" ON "#__ucm_base" ("ucm_type_id"); +CREATE INDEX "#__ucm_base_ucm_language_id" ON "#__ucm_base" ("ucm_language_id"); + +-- +-- Table structure for table `#__ucm_content` +-- + +CREATE TABLE IF NOT EXISTS "#__ucm_content" ( + "core_content_id" serial NOT NULL, + "core_type_alias" varchar(255) DEFAULT '' NOT NULL, + "core_title" varchar(255) DEFAULT '' NOT NULL, + "core_alias" varchar(255) DEFAULT '' NOT NULL, + "core_body" text, + "core_state" smallint DEFAULT 0 NOT NULL, + "core_checked_out_time" timestamp without time zone, + "core_checked_out_user_id" bigint DEFAULT 0 NOT NULL, + "core_access" bigint DEFAULT 0 NOT NULL, + "core_params" text, + "core_featured" smallint DEFAULT 0 NOT NULL, + "core_metadata" text, + "core_created_user_id" bigint DEFAULT 0 NOT NULL, + "core_created_by_alias" varchar(255) DEFAULT '' NOT NULL, + "core_created_time" timestamp without time zone NOT NULL, + "core_modified_user_id" bigint DEFAULT 0 NOT NULL, + "core_modified_time" timestamp without time zone NOT NULL, + "core_language" varchar(7) DEFAULT '' NOT NULL, + "core_publish_up" timestamp without time zone, + "core_publish_down" timestamp without time zone, + "core_content_item_id" bigint DEFAULT 0 NOT NULL, + "asset_id" bigint DEFAULT 0 NOT NULL, + "core_images" text, + "core_urls" text, + "core_hits" bigint DEFAULT 0 NOT NULL, + "core_version" bigint DEFAULT 1 NOT NULL, + "core_ordering" bigint DEFAULT 0 NOT NULL, + "core_metakey" text, + "core_metadesc" text, + "core_catid" bigint DEFAULT 0 NOT NULL, + "core_type_id" bigint DEFAULT 0 NOT NULL, + PRIMARY KEY ("core_content_id"), + CONSTRAINT "#__ucm_content_idx_type_alias_item_id" UNIQUE ("core_type_alias", "core_content_item_id") +); +CREATE INDEX "#__ucm_content_tag_idx" ON "#__ucm_content" ("core_state", "core_access"); +CREATE INDEX "#__ucm_content_idx_access" ON "#__ucm_content" ("core_access"); +CREATE INDEX "#__ucm_content_idx_alias" ON "#__ucm_content" ("core_alias"); +CREATE INDEX "#__ucm_content_idx_language" ON "#__ucm_content" ("core_language"); +CREATE INDEX "#__ucm_content_idx_title" ON "#__ucm_content" ("core_title"); +CREATE INDEX "#__ucm_content_idx_modified_time" ON "#__ucm_content" ("core_modified_time"); +CREATE INDEX "#__ucm_content_idx_created_time" ON "#__ucm_content" ("core_created_time"); +CREATE INDEX "#__ucm_content_idx_content_type" ON "#__ucm_content" ("core_type_alias"); +CREATE INDEX "#__ucm_content_idx_core_modified_user_id" ON "#__ucm_content" ("core_modified_user_id"); +CREATE INDEX "#__ucm_content_idx_core_checked_out_user_id" ON "#__ucm_content" ("core_checked_out_user_id"); +CREATE INDEX "#__ucm_content_idx_core_created_user_id" ON "#__ucm_content" ("core_created_user_id"); +CREATE INDEX "#__ucm_content_idx_core_type_id" ON "#__ucm_content" ("core_type_id"); + +-- +-- Table structure for table `#__ucm_history` +-- + +CREATE TABLE IF NOT EXISTS "#__ucm_history" ( + "version_id" serial NOT NULL, + "ucm_item_id" integer NOT NULL, + "ucm_type_id" integer NOT NULL, + "version_note" varchar(255) NOT NULL DEFAULT '', + "save_date" timestamp with time zone NOT NULL, + "editor_user_id" integer NOT NULL DEFAULT 0, + "character_count" integer NOT NULL DEFAULT 0, + "sha1_hash" varchar(50) NOT NULL DEFAULT '', + "version_data" text NOT NULL, + "keep_forever" smallint NOT NULL DEFAULT 0, + PRIMARY KEY ("version_id") +); +CREATE INDEX "#__ucm_history_idx_ucm_item_id" ON "#__ucm_history" ("ucm_type_id", "ucm_item_id"); +CREATE INDEX "#__ucm_history_idx_save_date" ON "#__ucm_history" ("save_date"); + +COMMENT ON COLUMN "#__ucm_history"."version_note" IS 'Optional version name'; +COMMENT ON COLUMN "#__ucm_history"."character_count" IS 'Number of characters in this version.'; +COMMENT ON COLUMN "#__ucm_history"."sha1_hash" IS 'SHA1 hash of the version_data column.'; +COMMENT ON COLUMN "#__ucm_history"."version_data" IS 'json-encoded string of version data'; +COMMENT ON COLUMN "#__ucm_history"."keep_forever" IS '0=auto delete; 1=keep'; + +-- +-- Table structure for table `#__webauthn_credentials` +-- + +CREATE TABLE IF NOT EXISTS "#__webauthn_credentials" ( + "id" varchar(1000) NOT NULL, + "user_id" varchar(128) NOT NULL, + "label" varchar(190) NOT NULL, + "credential" TEXT NOT NULL, + PRIMARY KEY ("id") +); + +CREATE INDEX "#__webauthn_credentials_user_id" ON "#__webauthn_credentials" ("user_id"); + +-- +-- Table structure for table `#__mail_templates` +-- + +CREATE TABLE IF NOT EXISTS "#__mail_templates" ( + "template_id" varchar(127) NOT NULL DEFAULT '', + "language" char(7) NOT NULL DEFAULT '', + "subject" varchar(255) NOT NULL DEFAULT '', + "body" TEXT NOT NULL, + "htmlbody" TEXT NOT NULL, + "attachments" TEXT NOT NULL, + "params" TEXT NOT NULL, + CONSTRAINT "#__mail_templates_idx_template_id_language" UNIQUE ("template_id", "language") +); +CREATE INDEX "#__mail_templates_idx_template_id" ON "#__mail_templates" ("template_id"); +CREATE INDEX "#__mail_templates_idx_language" ON "#__mail_templates" ("language"); + +-- +-- Dumping data for table `#__mail_templates` +-- + +INSERT INTO "#__mail_templates" ("template_id", "language", "subject", "body", "htmlbody", "attachments", "params") VALUES +('com_config.test_mail', '', 'COM_CONFIG_SENDMAIL_SUBJECT', 'COM_CONFIG_SENDMAIL_BODY', '', '', '{"tags":["sitename","method"]}'); diff --git a/installation/src/Controller/InstallationController.php b/installation/src/Controller/InstallationController.php index d4fc896e651b1..7cf54013a45af 100644 --- a/installation/src/Controller/InstallationController.php +++ b/installation/src/Controller/InstallationController.php @@ -12,6 +12,7 @@ defined('_JEXEC') or die; use Joomla\CMS\Application\CMSApplication; +use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\Factory\MVCFactoryInterface; use Joomla\Utilities\ArrayHelper; @@ -39,7 +40,11 @@ public function __construct($config = array(), MVCFactoryInterface $factory = nu { parent::__construct($config, $factory, $app, $input); - $this->registerTask('remove', 'backup'); + $this->registerTask('populate1', 'populate'); + $this->registerTask('populate2', 'populate'); + $this->registerTask('populate3', 'populate'); + $this->registerTask('custom1', 'populate'); + $this->registerTask('custom2', 'populate'); $this->registerTask('removeFolder', 'delete'); } @@ -77,98 +82,125 @@ public function dbcheck() } /** - * Config task. + * Create DB task. * * @return void * * @since 4.0.0 */ - public function config() + public function create() { $this->checkValidToken(); - /** @var \Joomla\CMS\Installation\Model\SetupModel $setUpModel */ - $setUpModel = $this->getModel('Setup'); - - // Get the options from the session - $options = $setUpModel->getOptions(); - $r = new \stdClass; - $r->view = 'remove'; - /** @var \Joomla\CMS\Installation\Model\ConfigurationModel $configurationModel */ - $configurationModel = $this->getModel('Configuration'); + /** @var \Joomla\CMS\Installation\Model\DatabaseModel $databaseModel */ + $databaseModel = $this->getModel('Database'); - // Attempt to setup the configuration. + // Create Db try { - $setupDone = $configurationModel->setup($options); + $dbCreated = $databaseModel->createDatabase(); } catch (\RuntimeException $e) { $this->app->enqueueMessage($e->getMessage(), 'error'); - $setupDone = false; + $dbCreated = false; } - if (!$setupDone) + if (!$dbCreated) { $r->view = 'setup'; } + else + { + if (!$databaseModel->handleOldDatabase()) + { + $r->view = 'setup'; + } + } $this->sendJsonResponse($r); } /** - * Database task. + * Populate the database. * * @return void * * @since 4.0.0 */ - public function database() + public function populate() { $this->checkValidToken(); - - /** @var \Joomla\CMS\Installation\Model\SetupModel $model */ - $model = $this->getModel('Setup'); - $model->checkForm('setup'); + $step = $this->getTask(); + /** @var \Joomla\CMS\Installation\Model\DatabaseModel $model */ + $model = $this->getModel('Database'); $r = new \stdClass; + $db = $model->initialise(); + $files = [ + 'populate1' => 'base', + 'populate2' => 'supports', + 'populate3' => 'extensions', + 'custom1' => 'localise', + 'custom2' => 'custom' + ]; + + $schema = $files[$step]; + $serverType = $db->getServerType(); + + if (in_array($step, ['custom1', 'custom2']) && !is_file('sql/' . $serverType . '/' . $schema . '.sql')) + { + $this->sendJsonResponse($r); - // Attempt to create the database tables - /** @var \Joomla\CMS\Installation\Model\DatabaseModel $dbModel */ - $dbModel = $this->getModel('Database'); + return; + } - if (!$dbModel->initialise() || !$dbModel->installCmsData()) + if (!isset($files[$step])) { - $r->view = 'database'; + $r->view = 'setup'; + Factory::getApplication()->enqueueMessage(Text::_('INSTL_SAMPLE_DATA_NOT_FOUND'), 'error'); + $this->sendJsonResponse($r); + } + + // Attempt to populate the database with the given file. + if (!$model->createTables($schema)) + { + $r->view = 'setup'; } $this->sendJsonResponse($r); } /** - * Backup task. + * Config task. * * @return void * * @since 4.0.0 */ - public function backup() + public function config() { $this->checkValidToken(); + /** @var \Joomla\CMS\Installation\Model\SetupModel $setUpModel */ + $setUpModel = $this->getModel('Setup'); + + // Get the options from the session + $options = $setUpModel->getOptions(); + $r = new \stdClass; - $r->view = 'install'; + $r->view = 'remove'; - /** @var \Joomla\CMS\Installation\Model\DatabaseModel $model */ - $model = $this->getModel('Database'); + /** @var \Joomla\CMS\Installation\Model\ConfigurationModel $configurationModel */ + $configurationModel = $this->getModel('Configuration'); - // Attempt to handle the old database. - if (!$model->handleOldDatabase()) + // Attempt to setup the configuration. + if (!$configurationModel->setup($options)) { - $r->view = 'database'; + $r->view = 'setup'; } $this->sendJsonResponse($r); diff --git a/installation/src/Model/ConfigurationModel.php b/installation/src/Model/ConfigurationModel.php index 09f8e641f1817..bc95874789d15 100644 --- a/installation/src/Model/ConfigurationModel.php +++ b/installation/src/Model/ConfigurationModel.php @@ -13,8 +13,13 @@ use Joomla\CMS\Factory; use Joomla\CMS\Installation\Helper\DatabaseHelper; +use Joomla\CMS\Installer\Installer; use Joomla\CMS\Language\Text; use Joomla\CMS\User\UserHelper; +use Joomla\CMS\Version; +use Joomla\Database\DatabaseDriver; +use Joomla\Filesystem\File; +use Joomla\Filesystem\Folder; use Joomla\Registry\Registry; use Joomla\Utilities\ArrayHelper; @@ -25,6 +30,14 @@ */ class ConfigurationModel extends BaseInstallationModel { + /** + * The generated user ID. + * + * @var integer + * @since 4.0 + */ + protected static $userId = 0; + /** * Method to setup the configuration file * @@ -33,72 +46,333 @@ class ConfigurationModel extends BaseInstallationModel * @return boolean True on success * * @since 3.1 - * @throws \RuntimeException */ public function setup($options) { // Get the options as an object for easier handling. $options = ArrayHelper::toObject($options); + // Get a database object. + try + { + $db = DatabaseHelper::getDbo( + $options->db_type, + $options->db_host, + $options->db_user, + $options->db_pass_plain, + $options->db_name, + $options->db_prefix, + true, + DatabaseHelper::getEncryptionSettings($options) + ); + } + catch (\RuntimeException $e) + { + Factory::getApplication()->enqueueMessage(Text::sprintf('INSTL_ERROR_CONNECT_DB', $e->getMessage()), 'error'); + + return false; + } + // Attempt to create the configuration. if (!$this->createConfiguration($options)) { return false; } - // Do the database init/fill - $databaseModel = new DatabaseModel; + $serverType = $db->getServerType(); - // Create Db - try + // Attempt to update the table #__schema. + $pathPart = JPATH_ADMINISTRATOR . '/components/com_admin/sql/updates/' . $serverType . '/'; + + $files = Folder::files($pathPart, '\.sql$'); + + if (empty($files)) { - if (!$databaseModel->createDatabase($options)) - { - $this->deleteConfiguration(); + Factory::getApplication()->enqueueMessage(Text::_('INSTL_ERROR_INITIALISE_SCHEMA'), 'error'); - return false; + return false; + } + + $version = ''; + + foreach ($files as $file) + { + if (version_compare($version, File::stripExt($file)) < 0) + { + $version = File::stripExt($file); } } + + $query = $db->getQuery(true) + ->select('extension_id') + ->from($db->quoteName('#__extensions')) + ->where($db->quoteName('name') . ' = ' . $db->quote('files_joomla')); + $db->setQuery($query); + $eid = $db->loadResult(); + + $query->clear() + ->insert($db->quoteName('#__schemas')) + ->columns( + array( + $db->quoteName('extension_id'), + $db->quoteName('version_id') + ) + ) + ->values($eid . ', ' . $db->quote($version)); + $db->setQuery($query); + + try + { + $db->execute(); + } catch (\RuntimeException $e) { - $this->deleteConfiguration(); + Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); - throw $e; + return false; } - $options->db_select = true; - $options->db_created = 1; + // Attempt to refresh manifest caches. + $query->clear() + ->select('*') + ->from('#__extensions'); + $db->setQuery($query); + + $return = true; - // Handle old db if exists - if (!$databaseModel->handleOldDatabase()) + try { - $this->deleteConfiguration(); + $extensions = $db->loadObjectList(); + } + catch (\RuntimeException $e) + { + Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); + $return = false; + } - return false; + Factory::$database = $db; + $installer = Installer::getInstance(); + + foreach ($extensions as $extension) + { + if (!$installer->refreshManifestCache($extension->extension_id)) + { + Factory::getApplication()->enqueueMessage( + Text::sprintf('INSTL_DATABASE_COULD_NOT_REFRESH_MANIFEST_CACHE', $extension->name), + 'error' + ); + + return false; + } } - // Create tables - if (!$databaseModel->createTables($options)) + // Handle default backend language setting. This feature is available for localized versions of Joomla. + $languages = Factory::getApplication()->getLocaliseAdmin($db); + + if (in_array($options->language, $languages['admin']) || in_array($options->language, $languages['site'])) { - $this->deleteConfiguration(); + // Build the language parameters for the language manager. + $params = array(); - return false; + // Set default administrator/site language to sample data values. + $params['administrator'] = 'en-GB'; + $params['site'] = 'en-GB'; + + if (in_array($options->language, $languages['admin'])) + { + $params['administrator'] = $options->language; + } + + if (in_array($options->language, $languages['site'])) + { + $params['site'] = $options->language; + } + + $params = json_encode($params); + + // Update the language settings in the language manager. + $query->clear() + ->update($db->quoteName('#__extensions')) + ->set($db->quoteName('params') . ' = ' . $db->quote($params)) + ->where($db->quoteName('element') . ' = ' . $db->quote('com_languages')); + $db->setQuery($query); + + try + { + $db->execute(); + } + catch (\RuntimeException $e) + { + Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); + + $return = false; + } } // Attempt to create the root user. - if (!$this->createRootUser($options)) + if (!$this->createRootUser($options, $db)) { $this->deleteConfiguration(); return false; } - // Install CMS data - if (!$databaseModel->installCmsData()) + // Update the cms data user ids. + $this->updateUserIds($db); + + // Check for testing sampledata plugin. + $this->checkTestingSampledata($db); + + return $return; + } + + /** + * Retrieves the default user ID and sets it if necessary. + * + * @return integer The user ID. + * + * @since 3.1 + */ + public static function getUserId() + { + if (!self::$userId) + { + self::$userId = self::generateRandUserId(); + } + + return self::$userId; + } + + /** + * Generates the user ID. + * + * @return integer The user ID. + * + * @since 3.1 + */ + protected static function generateRandUserId() + { + $session = Factory::getSession(); + $randUserId = $session->get('randUserId'); + + if (empty($randUserId)) { - $this->deleteConfiguration(); + // Create the ID for the root user only once and store in session. + $randUserId = mt_rand(1, 1000); + $session->set('randUserId', $randUserId); + } - return false; + return $randUserId; + } + + /** + * Resets the user ID. + * + * @return void + * + * @since 3.1 + */ + public static function resetRandUserId() + { + self::$userId = 0; + + Factory::getSession()->set('randUserId', self::$userId); + } + + /** + * Method to update the user id of sql data content to the new rand user id. + * + * @param DatabaseDriver $db Database connector object $db*. + * + * @return void + * + * @since 3.6.1 + */ + protected function updateUserIds($db) + { + // Create the ID for the root user. + $userId = self::getUserId(); + + // Update all core tables created_by fields of the tables with the random user id. + $updatesArray = array( + '#__banners' => array('created_by', 'modified_by'), + '#__categories' => array('created_user_id', 'modified_user_id'), + '#__contact_details' => array('created_by', 'modified_by'), + '#__content' => array('created_by', 'modified_by'), + '#__fields' => array('created_user_id', 'modified_by'), + '#__finder_filters' => array('created_by', 'modified_by'), + '#__newsfeeds' => array('created_by', 'modified_by'), + '#__tags' => array('created_user_id', 'modified_user_id'), + '#__ucm_content' => array('core_created_user_id', 'core_modified_user_id'), + '#__ucm_history' => array('editor_user_id'), + '#__user_notes' => array('created_user_id', 'modified_user_id'), + '#__workflows' => array('created_by', 'modified_by'), + ); + + foreach ($updatesArray as $table => $fields) + { + foreach ($fields as $field) + { + $query = $db->getQuery(true) + ->update($db->quoteName($table)) + ->set($db->quoteName($field) . ' = ' . $db->quote($userId)) + ->where($db->quoteName($field) . ' != 0') + ->where($db->quoteName($field) . ' IS NOT NULL'); + + $db->setQuery($query); + + try + { + $db->execute(); + } + catch (\RuntimeException $e) + { + Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); + } + } + } + } + + /** + * Method to check for the testing sampledata plugin. + * + * @param DatabaseDriver $db Database connector object $db*. + * + * @return void + * + * @since 4.0.0 + */ + public function checkTestingSampledata($db) + { + $version = new Version; + + if (!$version->isInDevelopmentState() || !is_file(JPATH_PLUGINS . '/sampledata/testing/testing.php')) + { + return; + } + + $testingPlugin = new \stdClass; + $testingPlugin->extension_id = null; + $testingPlugin->name = 'plg_sampledata_testing'; + $testingPlugin->type = 'plugin'; + $testingPlugin->element = 'testing'; + $testingPlugin->folder = 'sampledata'; + $testingPlugin->client_id = 0; + $testingPlugin->enabled = 1; + $testingPlugin->access = 1; + $testingPlugin->manifest_cache = ''; + $testingPlugin->params = '{}'; + + $db->insertObject('#__extensions', $testingPlugin, 'extension_id'); + + $installer = new Installer; + + if (!$installer->refreshManifestCache($testingPlugin->extension_id)) + { + Factory::getApplication()->enqueueMessage( + Text::sprintf('INSTL_DATABASE_COULD_NOT_REFRESH_MANIFEST_CACHE', $testingPlugin->name), + 'error' + ); } return true; @@ -266,39 +540,19 @@ public function createConfiguration($options) /** * Method to create the root user for the site. * - * @param object $options The session options. + * @param object $options The session options. + * @param DatabaseDriver $db Database connector object $db*. * * @return boolean True on success. * * @since 3.1 */ - private function createRootUser($options) + private function createRootUser($options, $db) { - // Get a database object. - try - { - $db = DatabaseHelper::getDbo( - $options->db_type, - $options->db_host, - $options->db_user, - $options->db_pass_plain, - $options->db_name, - $options->db_prefix, - true, - DatabaseHelper::getEncryptionSettings($options) - ); - } - catch (\RuntimeException $e) - { - Factory::getApplication()->enqueueMessage(Text::sprintf('INSTL_ERROR_CONNECT_DB', $e->getMessage()), 'error'); - - return false; - } - $cryptpass = UserHelper::hashPassword($options->admin_password_plain); // Take the admin user id - we'll need to leave this in the session for sample data install later on. - $userId = DatabaseModel::getUserId(); + $userId = self::getUserId(); // Create the admin user. date_default_timezone_set('UTC'); diff --git a/installation/src/Model/DatabaseModel.php b/installation/src/Model/DatabaseModel.php index 29743f2bca88a..23fb5a6f170f3 100644 --- a/installation/src/Model/DatabaseModel.php +++ b/installation/src/Model/DatabaseModel.php @@ -33,14 +33,6 @@ */ class DatabaseModel extends BaseInstallationModel { - /** - * The generated user ID. - * - * @var integer - * @since 3.1 - */ - protected static $userId = 0; - /** * Get the current setup options from the session. * @@ -53,67 +45,16 @@ public function getOptions() return Factory::getSession()->get('setup.options', array()); } - /** - * Generates the user ID. - * - * @return integer The user ID. - * - * @since 3.1 - */ - protected static function generateRandUserId() - { - $session = Factory::getSession(); - $randUserId = $session->get('randUserId'); - - if (empty($randUserId)) - { - // Create the ID for the root user only once and store in session. - $randUserId = mt_rand(1, 1000); - $session->set('randUserId', $randUserId); - } - - return $randUserId; - } - - /** - * Resets the user ID. - * - * @return void - * - * @since 3.1 - */ - public static function resetRandUserId() - { - self::$userId = 0; - - Factory::getSession()->set('randUserId', self::$userId); - } - - /** - * Retrieves the default user ID and sets it if necessary. - * - * @return integer The user ID. - * - * @since 3.1 - */ - public static function getUserId() - { - if (!self::$userId) - { - self::$userId = self::generateRandUserId(); - } - - return self::$userId; - } - /** * Method to initialise the database. * + * @param boolean $select Select the database when creating the connections. + * * @return DatabaseInterface|boolean Database object on success, boolean false on failure * * @since 3.1 */ - public function initialise() + public function initialise($select = true) { $options = $this->getOptions(); @@ -328,7 +269,7 @@ public function initialise() $options->db_pass_plain, $options->db_name, $options->db_prefix, - isset($options->db_select) ? $options->db_select : false, + $select, DatabaseHelper::getEncryptionSettings($options) ); } @@ -343,28 +284,16 @@ public function initialise() /** * Method to create a new database. * - * @param \stdClass $options The configuration options - * * @return boolean * * @since 3.1 * @throws \RuntimeException */ - public function createDatabase($options) + public function createDatabase() { - // Disable autoselect database before it's created. - $tmpSelect = true; - - $options = (object) $options; - - if (isset($options->db_select)) - { - $tmpSelect = $options->db_select; - } + $options = (object) $this->getOptions(); - $options->db_select = false; - - $db = $this->initialise(); + $db = $this->initialise(false); if ($db === false) { @@ -500,6 +429,16 @@ public function createDatabase($options) $db->select($options->db_name); } + // Set the character set to UTF-8 for pre-existing databases. + try + { + $db->alterDbCharacterSet($options->db_name); + } + catch (\RuntimeException $e) + { + // Continue Anyhow + } + $options = (array) $options; // Remove *_errors value. @@ -515,9 +454,6 @@ public function createDatabase($options) $options = array_merge(['db_created' => 1], $options); - // Restore autoselect value after database creation. - $options['db_select'] = $tmpSelect; - Factory::getSession()->set('setup.options', $options); return true; @@ -557,23 +493,10 @@ public function handleOldDatabase() // Continue Anyhow } - // Should any old database tables be removed or backed up? - if ($options->db_old == 'remove') - { - // Attempt to delete the old database tables. - if (!$this->deleteDatabase($db, $options->db_prefix)) - { - // Message queued by method, simply return - return false; - } - } - else + // Backup any old database. + if (!$this->backupDatabase($db, $options->db_prefix)) { - // If the database isn't being deleted, back it up. - if (!$this->backupDatabase($db, $options->db_prefix)) - { - return false; - } + return false; } return true; @@ -582,41 +505,26 @@ public function handleOldDatabase() /** * Method to create the database tables. * - * @param \stdClass $options The options array. + * @param string $schema The SQL schema file to apply. * * @return boolean True on success. * * @since 3.1 */ - public function createTables($options) + public function createTables($schema) { - if (!isset($options->db_created) || !$options->db_created) - { - return $this->createDatabase((array) $options); - } - if (!$db = $this->initialise()) { return false; } - // Set the character set to UTF-8 for pre-existing databases. - try - { - $db->alterDbCharacterSet($options->db_name); - } - catch (\RuntimeException $e) - { - // Continue Anyhow - } - $serverType = $db->getServerType(); // Set the appropriate schema script based on UTF-8 support. - $schema = 'sql/' . $serverType . '/joomla.sql'; + $schemaFile = 'sql/' . $serverType . '/' . $schema . '.sql'; // Check if the schema is a valid file - if (!is_file($schema)) + if (!is_file($schemaFile)) { Factory::getApplication()->enqueueMessage(Text::sprintf('INSTL_ERROR_DB', Text::_('INSTL_DATABASE_NO_SCHEMA')), 'error'); @@ -624,17 +532,15 @@ public function createTables($options) } // Attempt to import the database schema. - if (!$this->populateDatabase($db, $schema)) + if (!$this->populateDatabase($db, $schemaFile)) { return false; } - // Get query object for later database access - $query = $db->getQuery(true); - // MySQL only: Attempt to update the table #__utf8_conversion. if ($serverType === 'mysql') { + $query = $db->getQuery(true); $query->clear() ->update($db->quoteName('#__utf8_conversion')) ->set($db->quoteName('converted') . ' = ' . ($db->hasUTF8mb4Support() ? 2 : 1)); @@ -652,294 +558,9 @@ public function createTables($options) } } - // Attempt to update the table #__schema. - $pathPart = JPATH_ADMINISTRATOR . '/components/com_admin/sql/updates/' . $serverType . '/'; - - $files = Folder::files($pathPart, '\.sql$'); - - if (empty($files)) - { - Factory::getApplication()->enqueueMessage(Text::_('INSTL_ERROR_INITIALISE_SCHEMA'), 'error'); - - return false; - } - - $version = ''; - - foreach ($files as $file) - { - if (version_compare($version, File::stripExt($file)) < 0) - { - $version = File::stripExt($file); - } - } - - $query = $db->getQuery(true) - ->select('extension_id') - ->from($db->quoteName('#__extensions')) - ->where($db->quoteName('name') . ' = ' . $db->quote('files_joomla')); - $db->setQuery($query); - $eid = $db->loadResult(); - - $query->clear() - ->insert($db->quoteName('#__schemas')) - ->columns( - array( - $db->quoteName('extension_id'), - $db->quoteName('version_id') - ) - ) - ->values($eid . ', ' . $db->quote($version)); - $db->setQuery($query); - - try - { - $db->execute(); - } - catch (\RuntimeException $e) - { - Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); - - return false; - } - - // Attempt to refresh manifest caches. - $query->clear() - ->select('*') - ->from('#__extensions'); - $db->setQuery($query); - - $return = true; - - try - { - $extensions = $db->loadObjectList(); - } - catch (\RuntimeException $e) - { - Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); - $return = false; - } - - Factory::$database = $db; - $installer = Installer::getInstance(); - - foreach ($extensions as $extension) - { - if (!$installer->refreshManifestCache($extension->extension_id)) - { - Factory::getApplication()->enqueueMessage( - Text::sprintf('INSTL_DATABASE_COULD_NOT_REFRESH_MANIFEST_CACHE', $extension->name), - 'error' - ); - - return false; - } - } - - // Load the localise.sql for translating the data in joomla.sql. - $dblocalise = 'sql/' . $serverType . '/localise.sql'; - - if (is_file($dblocalise)) - { - if (!$this->populateDatabase($db, $dblocalise)) - { - return false; - } - } - - // Load the custom.sql for customising the data in joomla.sql. - $dbcustom = 'sql/' . $serverType . '/custom.sql'; - - if (is_file($dbcustom)) - { - if (!$this->populateDatabase($db, $dbcustom)) - { - return false; - } - } - - // Handle default backend language setting. This feature is available for localized versions of Joomla. - $languages = Factory::getApplication()->getLocaliseAdmin($db); - - if (in_array($options->language, $languages['admin']) || in_array($options->language, $languages['site'])) - { - // Build the language parameters for the language manager. - $params = array(); - - // Set default administrator/site language to sample data values. - $params['administrator'] = 'en-GB'; - $params['site'] = 'en-GB'; - - if (in_array($options->language, $languages['admin'])) - { - $params['administrator'] = $options->language; - } - - if (in_array($options->language, $languages['site'])) - { - $params['site'] = $options->language; - } - - $params = json_encode($params); - - // Update the language settings in the language manager. - $query->clear() - ->update($db->quoteName('#__extensions')) - ->set($db->quoteName('params') . ' = ' . $db->quote($params)) - ->where($db->quoteName('element') . ' = ' . $db->quote('com_languages')); - $db->setQuery($query); - - try - { - $db->execute(); - } - catch (\RuntimeException $e) - { - Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); - - $return = false; - } - } - - return $return; - } - - /** - * Method to install the cms data. - * - * @return boolean True on success. - * - * @since 3.6.1 - */ - public function installCmsData() - { - if (!$db = $this->initialise()) - { - return false; - } - - // Run Cms data post install to update user ids. - $this->postInstallCmsData($db); - return true; } - /** - * Cms tables and data post install process. - * - * @param DatabaseDriver $db Database connector object $db*. - * - * @return void - * - * @since 3.6.1 - */ - protected function postInstallCmsData($db) - { - // Update the cms data user ids. - $this->updateUserIds($db); - - // Check for testing sampledata plugin. - $this->checkTestingSampledata($db); - } - - /** - * Method to update the user id of sql data content to the new rand user id. - * - * @param DatabaseDriver $db Database connector object $db*. - * - * @return void - * - * @since 3.6.1 - */ - protected function updateUserIds($db) - { - // Create the ID for the root user. - $userId = self::getUserId(); - - // Update all core tables created_by fields of the tables with the random user id. - $updatesArray = array( - '#__banners' => array('created_by', 'modified_by'), - '#__categories' => array('created_user_id', 'modified_user_id'), - '#__contact_details' => array('created_by', 'modified_by'), - '#__content' => array('created_by', 'modified_by'), - '#__fields' => array('created_user_id', 'modified_by'), - '#__finder_filters' => array('created_by', 'modified_by'), - '#__newsfeeds' => array('created_by', 'modified_by'), - '#__tags' => array('created_user_id', 'modified_user_id'), - '#__ucm_content' => array('core_created_user_id', 'core_modified_user_id'), - '#__ucm_history' => array('editor_user_id'), - '#__user_notes' => array('created_user_id', 'modified_user_id'), - '#__workflows' => array('created_by', 'modified_by'), - ); - - foreach ($updatesArray as $table => $fields) - { - foreach ($fields as $field) - { - $query = $db->getQuery(true) - ->update($db->quoteName($table)) - ->set($db->quoteName($field) . ' = ' . $db->quote($userId)) - ->where($db->quoteName($field) . ' != 0') - ->where($db->quoteName($field) . ' IS NOT NULL'); - - $db->setQuery($query); - - try - { - $db->execute(); - } - catch (\RuntimeException $e) - { - Factory::getApplication()->enqueueMessage($e->getMessage(), 'error'); - } - } - } - } - - /** - * Method to check for the testing sampledata plugin. - * - * @param DatabaseDriver $db Database connector object $db*. - * - * @return void - * - * @since 4.0.0 - */ - public function checkTestingSampledata($db) - { - $version = new Version; - - if (!$version->isInDevelopmentState() || !is_file(JPATH_PLUGINS . '/sampledata/testing/testing.php')) - { - return; - } - - $testingPlugin = new \stdClass; - $testingPlugin->extension_id = null; - $testingPlugin->name = 'plg_sampledata_testing'; - $testingPlugin->type = 'plugin'; - $testingPlugin->element = 'testing'; - $testingPlugin->folder = 'sampledata'; - $testingPlugin->client_id = 0; - $testingPlugin->enabled = 1; - $testingPlugin->access = 1; - $testingPlugin->manifest_cache = ''; - $testingPlugin->params = '{}'; - - $db->insertObject('#__extensions', $testingPlugin, 'extension_id'); - - $installer = new Installer; - - if (!$installer->refreshManifestCache($testingPlugin->extension_id)) - { - Factory::getApplication()->enqueueMessage( - Text::sprintf('INSTL_DATABASE_COULD_NOT_REFRESH_MANIFEST_CACHE', $testingPlugin->name), - 'error' - ); - } - } - /** * Method to backup all tables in a database with a given prefix. * @@ -1027,48 +648,6 @@ public function createDb($db, $options, $utf) return true; } - /** - * Method to delete all tables in a database with a given prefix. - * - * @param DatabaseDriver $db JDatabaseDriver object. - * @param string $prefix Database table prefix. - * - * @return boolean True on success. - * - * @since 3.1 - */ - public function deleteDatabase($db, $prefix) - { - $return = true; - - // Get the tables in the database. - $tables = $db->getTableList(); - - if ($tables) - { - foreach ($tables as $table) - { - // If the table uses the given prefix, drop it. - if (strpos($table, $prefix) === 0) - { - // Drop the table. - try - { - $db->dropTable($table); - } - catch (\RuntimeException $e) - { - Factory::getApplication()->enqueueMessage(Text::sprintf('INSTL_DATABASE_ERROR_DELETE', $e->getMessage()), 'error'); - - $return = false; - } - } - } - } - - return $return; - } - /** * Method to import a database schema from a file. * diff --git a/installation/src/Model/SetupModel.php b/installation/src/Model/SetupModel.php index b55150fc1e90a..d497b331c032e 100644 --- a/installation/src/Model/SetupModel.php +++ b/installation/src/Model/SetupModel.php @@ -541,7 +541,7 @@ public function validateDbConnection() $options->db_pass_plain, $options->db_name, $options->db_prefix, - isset($options->db_select) ? $options->db_select : false, + false, DatabaseHelper::getEncryptionSettings($options) ); diff --git a/installation/template/js/setup.js b/installation/template/js/setup.js index 24eadbf2cefca..1839301ea677c 100644 --- a/installation/template/js/setup.js +++ b/installation/template/js/setup.js @@ -107,7 +107,7 @@ Joomla.checkDbCredentials = function() { } else if (response.data && response.data.validated === true) { // Run the installer - we let this handle the redirect for now // TODO: Convert to promises - Joomla.install(['config'], form); + Joomla.install(['create', 'populate1', 'populate2', 'populate3', 'custom1', 'custom2', 'config'], form); } }, onError: function(xhr){