Skip to content

Commit

Permalink
Task techjoomla#4 chore: 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 cd02980 commit c20763b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_clusters` (
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`description` text NOT NULL DEFAULT '',
`params` text NOT NULL DEFAULT '',
`client` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`client` varchar(400) NOT NULL DEFAULT '',
`client_id` int(11) NOT NULL DEFAULT '0',
`ordering` int(11) NOT NULL DEFAULT '0',
`state` tinyint(3) NOT NULL DEFAULT '0',
Expand All @@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_clusters` (
`modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(11) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE = MyISAM CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;


CREATE TABLE IF NOT EXISTS `#__tj_cluster_nodes` (
Expand All @@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_cluster_nodes` (
`modified_by` int(11) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`cluster_id`) REFERENCES `#__tj_clusters` (`id`)
) ENGINE = MyISAM CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for table `__tj_cluster_nodes`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE `#__tj_clusters` ENGINE = InnoDB;
ALTER TABLE `#__tj_cluster_nodes` ENGINE = InnoDB;

ALTER TABLE `#__tj_clusters` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__tj_cluster_nodes` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
2 changes: 1 addition & 1 deletion src/components/com_cluster/cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://techjoomla.com</authorUrl>
<description />
<version>1.0.0</version>
<version>1.0.1</version>
<install>
<!-- Runs on install -->
<sql>
Expand Down

0 comments on commit c20763b

Please sign in to comment.