Skip to content
Snippets Groups Projects
Commit b2ca9ef7 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #687 from protich/issue/collation


Change collation to utf8_general_ci

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 2caa9a7c 18b413c0
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