Skip to content

Commit

Permalink
Update SQL and version techjoomla#51 techjoomla#56
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaykhollam committed Oct 22, 2019
1 parent d0c3285 commit f4fad24
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ ALTER TABLE `#__tj_notification_providers` ENGINE = InnoDB;
ALTER TABLE `#__tj_notification_templates` ENGINE = InnoDB;
ALTER TABLE `#__tj_notification_user_exclusions` ENGINE = InnoDB;

SET FOREIGN_KEY_CHECKS = 0;
-- #__tj_notification_providers columns
ALTER TABLE `#__tj_notification_providers` CHANGE `provider` `provider` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;

-- #__tj_notification_user_exclusions columns
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE `client` `client` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE `key` `key` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE `provider` `provider` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;

SET FOREIGN_KEY_CHECKS = 1;

-- #__tj_notification_templates columns
ALTER TABLE `#__tj_notification_templates` CHANGE `client` `client` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `key` `key` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
Expand All @@ -24,8 +32,4 @@ ALTER TABLE `#__tj_notification_templates` CHANGE `push_subject` `push_subject`
ALTER TABLE `#__tj_notification_templates` CHANGE `web_subject` `web_subject` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `replacement_tags` `replacement_tags` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;

-- #__tj_notification_user_exclusions columns
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE `client` `client` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE `key` `key` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE `provider` `provider` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;

0 comments on commit f4fad24

Please sign in to comment.