Skip to content
Snippets Groups Projects
Commit 18b413c0 authored by Peter Rotich's avatar Peter Rotich
Browse files

Change collation to utf8_general_ci

This is necessary to avoid illegal mix of collations error during upgrade
for MySQL with strict language setting.
parent 2711f3c8
Branches
Tags
No related merge requests found
...@@ -93,6 +93,11 @@ INSERT INTO `%TABLE_PREFIX%ticket_email_info` ...@@ -93,6 +93,11 @@ INSERT INTO `%TABLE_PREFIX%ticket_email_info`
FROM `%TABLE_PREFIX%ticket_message` FROM `%TABLE_PREFIX%ticket_message`
WHERE `messageId` IS NOT NULL AND `messageId` <>''; WHERE `messageId` IS NOT NULL AND `messageId` <>'';
-- Change collation to utf8_general_ci - to avoid Illegal mix of collations error
ALTER TABLE `%TABLE_PREFIX%ticket_attachment`
CHANGE `ref_type` `ref_type` ENUM('M','R','N') CHARACTER
SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'M';
-- Update attachment table -- Update attachment table
UPDATE `%TABLE_PREFIX%ticket_attachment` UPDATE `%TABLE_PREFIX%ticket_attachment`
SET `ref_id` = ( SELECT T2.`id` FROM `%TABLE_PREFIX%ticket_thread` T2 SET `ref_id` = ( SELECT T2.`id` FROM `%TABLE_PREFIX%ticket_thread` T2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment