From f4fad248f8d69fa7e12307be8daf0082ee000b97 Mon Sep 17 00:00:00 2001 From: Vijay Khollam Date: Tue, 22 Oct 2019 10:40:32 +0530 Subject: [PATCH] Update SQL and version #51 #56 --- .../admin/sql/updates/mysql/1.0.4.sql | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql b/src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql index 6b08e819..352022ee 100644 --- a/src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql +++ b/src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql @@ -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; @@ -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;