Skip to content

Commit

Permalink
Update SQL and version techjoomla#51
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaykhollam committed Jul 18, 2019
1 parent 6db12d2 commit 3e14fc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
11 changes: 3 additions & 8 deletions src/com_tjnotifications/admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +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
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) 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 @@ -34,9 +32,7 @@ CREATE TABLE IF NOT EXISTS `#__tj_notification_templates` (
UNIQUE KEY `client_2` (`client`,`key`),
KEY `client` (`client`),
KEY `key` (`key`)
)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
AUTO_INCREMENT=0 ;
) 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 @@ -47,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`)
)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
1 change: 0 additions & 1 deletion src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
ALTER TABLE `#__tj_notification_providers` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__tj_notification_templates` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__tj_notification_user_exclusions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__tj_notification_user_exclusions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;


2 changes: 1 addition & 1 deletion src/com_tjnotifications/tjnotifications.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<copyright>Copyright (C) 2016 - 2019 Techjoomla. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<creationDate>7th Feb 2019</creationDate>
<version>1.0.3</version>
<version>1.0.4</version>
<install>
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
Expand Down

0 comments on commit 3e14fc2

Please sign in to comment.