Skip to content

Commit

Permalink
Task techjoomla#63 fix: Updated table charset and collation
Browse files Browse the repository at this point in the history
  • Loading branch information
praneettekdi committed Jul 18, 2019
1 parent 77fbce5 commit 6af6440
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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;

0 comments on commit 6af6440

Please sign in to comment.