Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_dashboards` (
`dashboard_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`asset_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.',
`access` int(10) UNSIGNED NOT NULL DEFAULT '0',
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`ordering` int(11) NOT NULL DEFAULT '0',
Expand All @@ -18,12 +18,12 @@ CREATE TABLE IF NOT EXISTS `#__tj_dashboards` (
PRIMARY KEY (`dashboard_id`),
KEY `idx_createdby` (`created_by`),
KEY `idx_alias` (`alias`(191))
) DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__tj_dashboard_widgets` (
`dashboard_widget_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`dashboard_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'FK to the #__tj_dashboard table.',
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL DEFAULT '',
`ordering` int(11) NOT NULL DEFAULT '0',
`state` tinyint(3) NOT NULL DEFAULT '0',
`data_plugin` varchar(255) NOT NULL COMMENT 'Data Source Plugin',
Expand All @@ -42,5 +42,5 @@ CREATE TABLE IF NOT EXISTS `#__tj_dashboard_widgets` (
FOREIGN KEY (`dashboard_id`) REFERENCES `#__tj_dashboards` (`dashboard_id`),
KEY `idx_dashboard_id` (`dashboard_id`),
KEY `idx_createdby` (`created_by`)
) DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE `#__tj_dashboards` ENGINE = InnoDB;
ALTER TABLE `#__tj_dashboard_widgets` ENGINE = InnoDB;

ALTER TABLE `#__tj_dashboards` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__tj_dashboard_widgets` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;