Skip to content

Commit

Permalink
Task #108 chore: Change the charset of tables (#109)
Browse files Browse the repository at this point in the history
Task #108 chore: Change the charset of tables
  • Loading branch information
manojLondhe authored Oct 22, 2019
2 parents 2b54593 + 5b3ba7a commit c7fe242
Show file tree
Hide file tree
Showing 3 changed files with 5 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;
2 changes: 2 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,2 @@
ALTER TABLE `#__api_keys` ENGINE = InnoDB;
ALTER TABLE `#__api_logs` ENGINE = InnoDB;
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 c7fe242

Please sign in to comment.