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

cdata: Force rebuild as UTF8

parent e9301b57
No related branches found
No related tags found
No related merge requests found
...@@ -287,7 +287,7 @@ class DynamicForm extends VerySimpleModel { ...@@ -287,7 +287,7 @@ class DynamicForm extends VerySimpleModel {
static function buildDynamicDataView($cdata) { static function buildDynamicDataView($cdata) {
$sql = 'CREATE TABLE `'.$cdata['table'].'` (PRIMARY KEY $sql = 'CREATE TABLE `'.$cdata['table'].'` (PRIMARY KEY
('.$cdata['object_id'].')) AS ' ('.$cdata['object_id'].')) DEFAULT CHARSET=utf8 AS '
. static::getCrossTabQuery( $cdata['object_type'], $cdata['object_id']); . static::getCrossTabQuery( $cdata['object_type'], $cdata['object_id']);
db_query($sql); db_query($sql);
} }
......
...@@ -88,6 +88,9 @@ UPDATE `%TABLE_PREFIX%list` A1 ...@@ -88,6 +88,9 @@ UPDATE `%TABLE_PREFIX%list` A1
ON (`config`.`namespace` = CONCAT('list.', A1.`id`) AND `config`.`key` = 'configuration') ON (`config`.`namespace` = CONCAT('list.', A1.`id`) AND `config`.`key` = 'configuration')
SET A1.`configuration` = `config`.`value`; SET A1.`configuration` = `config`.`value`;
-- Rebuild %ticket__cdata as UTF8
DROP TABLE IF EXISTS `%TABLE_PREFIX%ticket__cdata`;
-- Finished with patch -- Finished with patch
UPDATE `%TABLE_PREFIX%config` UPDATE `%TABLE_PREFIX%config`
SET `value` = '00000000000000000000000000000000' SET `value` = '00000000000000000000000000000000'
......
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