diff --git a/src/components/com_cluster/administrator/sql/install.mysql.utf8.sql b/src/components/com_cluster/administrator/sql/install.mysql.utf8.sql index 3983260..4f64310 100644 --- a/src/components/com_cluster/administrator/sql/install.mysql.utf8.sql +++ b/src/components/com_cluster/administrator/sql/install.mysql.utf8.sql @@ -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', @@ -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` ( @@ -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` diff --git a/src/components/com_cluster/administrator/sql/updates/mysql/1.0.1.sql b/src/components/com_cluster/administrator/sql/updates/mysql/1.0.1.sql new file mode 100644 index 0000000..752baba --- /dev/null +++ b/src/components/com_cluster/administrator/sql/updates/mysql/1.0.1.sql @@ -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; diff --git a/src/components/com_cluster/cluster.xml b/src/components/com_cluster/cluster.xml index 2ba0be0..c80fada 100644 --- a/src/components/com_cluster/cluster.xml +++ b/src/components/com_cluster/cluster.xml @@ -8,7 +8,7 @@ extensions@techjoomla.com http://techjoomla.com - 1.0.0 + 1.0.1