Skip to content

Commit

Permalink
#51 DB engine Changes (#57)
Browse files Browse the repository at this point in the history
* #00000 feat: DB engine Changes

* #00000 feat: DB engine Changes

* #00000 feat: DB engine Changes
  • Loading branch information
vijaykhollam authored and manojLondhe committed Oct 22, 2019
1 parent 90717af commit ce9d499
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
12 changes: 3 additions & 9 deletions src/com_tjnotifications/admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_notification_providers` (
`provider` varchar(100) NOT NULL,
`state` int(1) NOT NULL,
primary key(provider)
)
AUTO_INCREMENT =0
DEFAULT CHARSET =utf8;

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__tj_notification_templates` (
`id` int(11) NOT NULL AUTO_INCREMENT,
Expand Down Expand Up @@ -35,9 +32,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_notification_templates` (
UNIQUE KEY `client_2` (`client`,`key`),
KEY `client` (`client`),
KEY `key` (`key`)
)
DEFAULT CHARSET=utf8
AUTO_INCREMENT=0 ;
) AUTO_INCREMENT=1 ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__tj_notification_user_exclusions` (
`user_id` int(11) NOT NULL,
Expand All @@ -48,5 +43,4 @@ CREATE TABLE IF NOT EXISTS `#__tj_notification_templates` (
KEY `key` (`key`),
KEY `provider` (`provider`),
CONSTRAINT `#__tj_notification_user_exclusions_ibfk_1` FOREIGN KEY (`provider`) REFERENCES `#__tj_notification_providers` (`provider`)
)
DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
8 changes: 8 additions & 0 deletions src/com_tjnotifications/admin/sql/updates/mysql/1.0.5.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

--
-- Change table ENGINE;
--

ALTER TABLE `#__tj_notification_providers` ENGINE = InnoDB;
ALTER TABLE `#__tj_notification_templates` ENGINE = InnoDB;
ALTER TABLE `#__tj_notification_user_exclusions` ENGINE = InnoDB;
7 changes: 6 additions & 1 deletion src/com_tjnotifications/tjnotifications.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
<copyright>Copyright (C) 2016 - 2019 Techjoomla. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<creationDate>18th Jul 2019</creationDate>
<version>1.0.4</version>
<version>1.0.5</version>
<install>
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<update>
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file>
Expand Down

0 comments on commit ce9d499

Please sign in to comment.