Skip to content

Commit

Permalink
Task techjoomla#108 chore: Change the charset of tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Amol Thite committed Jul 18, 2019
1 parent 2b54593 commit 2391c2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS `#__api_keys` (
`last_used` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`per_hour` int(10) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;


CREATE TABLE IF NOT EXISTS `#__api_logs` (
Expand All @@ -22,4 +22,4 @@ CREATE TABLE IF NOT EXISTS `#__api_logs` (
`request` varchar(255) NOT NULL,
`post_data` text NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
5 changes: 5 additions & 0 deletions code/admin/sql/updates/mysql/2.5.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE `#__api_keys` ENGINE = InnoDB;
ALTER TABLE `#__api_logs` ENGINE = InnoDB;

ALTER TABLE `#__api_keys` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__api_logs` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
2 changes: 1 addition & 1 deletion code/api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<author>Techjoomla</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://techjoomla.com</authorUrl>
<version>2.5.0</version>
<version>2.5.1</version>
<description>Multi-purpose REST API framework for Joomla</description>
<install>
<!-- Runs on install -->
Expand Down

0 comments on commit 2391c2d

Please sign in to comment.