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
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,11 @@ INSERT INTO `%TABLE_PREFIX%ticket_email_info`
FROM `%TABLE_PREFIX%ticket_message`
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 `%TABLE_PREFIX%ticket_attachment`
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.
Finish editing this message first!
Please register or to comment