Skip to content

Commit 06f8814

Browse files
committed
AC-9755:Set default collation to utf8mb4 for MySQL
1 parent 00721de commit 06f8814

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Theme/Model/Indexer/Design/IndexerHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ public function cleanIndex($dimensions)
9898
if (str_contains($collation, self::OLDCHARSET)) {
9999
$this->connection->query(
100100
sprintf(
101-
'ALTER TABLE `%s` MODIFY COLUMN `theme_theme_id` varchar(255) %s `COMMENT \'Theme_theme_id\'`,
101+
'ALTER TABLE `%s` MODIFY COLUMN `theme_theme_id` varchar(255) %s %s,
102102
DEFAULT CHARSET=%s, DEFAULT COLLATE=%s',
103103
$tableName,
104104
self::COLUMN_ENCODING,
105+
"COMMENT 'Theme_theme_id'",
105106
self::CHARSET,
106107
self::COLLATION
107108
)

0 commit comments

Comments
 (0)