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 Oct 21, 2019
1 parent b939509 commit 1e438a6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/com_tjnotifications/admin/sql/updates/mysql/1.0.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@



--
-- Change default table CHARACTER to utf8mb4 and COLLATE to utf8mb4_unicode_ci;
--

ALTER TABLE `#__tj_notification_providers` ENGINE = InnoDB;
ALTER TABLE `#__tj_notification_templates` ENGINE = InnoDB;
ALTER TABLE `#__tj_notification_user_exclusions` ENGINE = InnoDB;

-- #__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_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;
ALTER TABLE `#__tj_notification_templates` CHANGE `title` `title` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `email_body` `email_body` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `sms_body` `sms_body` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `push_body` `push_body` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `web_body` `web_body` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `email_subject` `email_subject` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `sms_subject` `sms_subject` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__tj_notification_templates` CHANGE `push_subject` `push_subject` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
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 1e438a6

Please sign in to comment.