Joomla-Sermon-Distributor-Fork/admin/sql/install.mysql.utf8.sql

266 lines
11 KiB
MySQL
Raw Normal View History

2015-11-30 21:30:54 +00:00
CREATE TABLE IF NOT EXISTS `#__sermondistributor_preacher` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2015-11-30 21:30:54 +00:00
`alias` CHAR(64) NOT NULL DEFAULT '',
`description` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
`email` VARCHAR(255) NOT NULL DEFAULT '',
`icon` CHAR(64) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL DEFAULT '',
`website` VARCHAR(255) NOT NULL DEFAULT '',
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
2019-04-04 11:52:38 +00:00
`metakey` TEXT NOT NULL,
`metadesc` TEXT NOT NULL,
`metadata` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
PRIMARY KEY (`id`),
2020-01-05 22:53:13 +00:00
KEY `idx_name` (`name`),
KEY `idx_alias` (`alias`),
2015-11-30 21:30:54 +00:00
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
2020-01-05 22:53:13 +00:00
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
2015-11-30 21:30:54 +00:00
CREATE TABLE IF NOT EXISTS `#__sermondistributor_sermon` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2015-11-30 21:30:54 +00:00
`alias` CHAR(64) NOT NULL DEFAULT '',
`auto_sermons` TEXT NOT NULL,
2017-08-18 11:20:01 +00:00
`build` TINYINT(1) NOT NULL DEFAULT 0,
`catid` INT(11) NOT NULL DEFAULT 0,
`description` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
`icon` CHAR(64) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`link_type` TINYINT(1) NOT NULL DEFAULT 1,
`local_files` TEXT NOT NULL,
`manual_files` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
`name` VARCHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`preacher` INT(11) NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`scripture` VARCHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`series` INT(11) NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`short_description` VARCHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`source` TINYINT(1) NOT NULL DEFAULT 0,
2021-08-16 17:11:22 +00:00
`tags` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
`url` VARCHAR(255) NOT NULL DEFAULT '',
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
2019-04-04 11:52:38 +00:00
`metakey` TEXT NOT NULL,
`metadesc` TEXT NOT NULL,
`metadata` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
PRIMARY KEY (`id`),
KEY `idx_name` (`name`),
KEY `idx_preacher` (`preacher`),
KEY `idx_series` (`series`),
KEY `idx_catid` (`catid`),
KEY `idx_link_type` (`link_type`),
KEY `idx_alias` (`alias`),
2020-01-05 22:53:13 +00:00
KEY `idx_build` (`build`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
2015-11-30 21:30:54 +00:00
CREATE TABLE IF NOT EXISTS `#__sermondistributor_series` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2015-11-30 21:30:54 +00:00
`alias` CHAR(64) NOT NULL DEFAULT '',
`description` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
`icon` CHAR(64) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL DEFAULT '',
`scripture` VARCHAR(255) NOT NULL DEFAULT '',
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
2019-04-04 11:52:38 +00:00
`metakey` TEXT NOT NULL,
`metadesc` TEXT NOT NULL,
`metadata` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
PRIMARY KEY (`id`),
2020-01-05 22:53:13 +00:00
KEY `idx_name` (`name`),
KEY `idx_alias` (`alias`),
2015-11-30 21:30:54 +00:00
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
2020-01-05 22:53:13 +00:00
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
2015-11-30 21:30:54 +00:00
CREATE TABLE IF NOT EXISTS `#__sermondistributor_statistic` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2017-08-18 11:20:01 +00:00
`counter` INT(64) NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`filename` VARCHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`preacher` INT(11) NOT NULL DEFAULT 0,
`series` INT(11) NOT NULL DEFAULT 0,
`sermon` INT(11) NOT NULL DEFAULT 0,
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
2019-04-04 11:52:38 +00:00
`metakey` TEXT NOT NULL,
`metadesc` TEXT NOT NULL,
`metadata` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
PRIMARY KEY (`id`),
2020-01-05 22:53:13 +00:00
KEY `idx_filename` (`filename`),
KEY `idx_sermon` (`sermon`),
KEY `idx_preacher` (`preacher`),
KEY `idx_series` (`series`),
2015-11-30 21:30:54 +00:00
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
2020-01-05 22:53:13 +00:00
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
2015-11-30 21:30:54 +00:00
CREATE TABLE IF NOT EXISTS `#__sermondistributor_external_source` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2017-08-18 11:20:01 +00:00
`build` TINYINT(1) NOT NULL DEFAULT 0,
`description` VARCHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`dropboxoptions` TINYINT(1) NOT NULL DEFAULT 1,
`externalsources` INT(11) NOT NULL DEFAULT 0,
`filetypes` TEXT NOT NULL,
`folder` TEXT NOT NULL,
2017-08-18 11:20:01 +00:00
`not_required` INT(1) NOT NULL DEFAULT 0,
`oauthtoken` TEXT NOT NULL,
`permissiontype` VARCHAR(64) NOT NULL DEFAULT '',
`sharedurl` TEXT NOT NULL,
2017-08-18 11:20:01 +00:00
`update_method` TINYINT NOT NULL DEFAULT 0,
`update_timer` INT(1) NOT NULL DEFAULT 0,
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `idx_description` (`description`),
KEY `idx_externalsources` (`externalsources`),
KEY `idx_update_method` (`update_method`),
KEY `idx_build` (`build`),
KEY `idx_dropboxoptions` (`dropboxoptions`),
2020-01-05 22:53:13 +00:00
KEY `idx_permissiontype` (`permissiontype`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `#__sermondistributor_local_listing` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2017-08-18 11:20:01 +00:00
`build` TINYINT(1) NOT NULL DEFAULT 0,
`external_source` INT(11) NOT NULL DEFAULT 0,
`key` VARCHAR(255) NOT NULL DEFAULT '',
`name` VARCHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`size` INT(50) NOT NULL DEFAULT 0,
`url` TEXT NOT NULL,
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
2020-01-05 22:53:13 +00:00
KEY `idx_name` (`name`),
KEY `idx_build` (`build`),
KEY `idx_key` (`key`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
2020-01-05 22:53:13 +00:00
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
2015-11-30 21:30:54 +00:00
CREATE TABLE IF NOT EXISTS `#__sermondistributor_help_document` (
2017-02-17 20:21:37 +00:00
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
2015-11-30 21:30:54 +00:00
`admin_view` CHAR(255) NOT NULL DEFAULT '',
`alias` CHAR(64) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`article` TINYINT(1) NOT NULL DEFAULT 0,
`content` TEXT NOT NULL,
`groups` TEXT NOT NULL,
2017-08-18 11:20:01 +00:00
`location` TINYINT(1) NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`site_view` CHAR(255) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`target` TINYINT(1) NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`title` CHAR(64) NOT NULL DEFAULT '',
2017-08-18 11:20:01 +00:00
`type` TINYINT(1) NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`url` VARCHAR(255) NOT NULL DEFAULT '',
2022-03-03 03:49:35 +00:00
`params` text NULL,
2017-02-17 20:21:37 +00:00
`published` TINYINT(3) NOT NULL DEFAULT 1,
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
2015-11-30 21:30:54 +00:00
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
2017-02-17 20:21:37 +00:00
`version` INT(10) unsigned NOT NULL DEFAULT 1,
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
2019-04-04 11:52:38 +00:00
`metakey` TEXT NOT NULL,
`metadesc` TEXT NOT NULL,
`metadata` TEXT NOT NULL,
2015-11-30 21:30:54 +00:00
PRIMARY KEY (`id`),
KEY `idx_title` (`title`),
KEY `idx_type` (`type`),
KEY `idx_location` (`location`),
2020-05-30 21:39:43 +00:00
KEY `idx_alias` (`alias`),
KEY `idx_article` (`article`),
2015-11-30 21:30:54 +00:00
KEY `idx_target` (`target`),
2020-01-05 22:53:13 +00:00
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_createdby` (`created_by`),
KEY `idx_modifiedby` (`modified_by`),
KEY `idx_state` (`published`)
2019-04-04 11:52:38 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
2015-11-30 21:30:54 +00:00