Skip to content

Commit 7e15553

Browse files
committed
Special treatment for MySQL JSON to search case insensitive
1 parent 1485131 commit 7e15553

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Neos.ContentRepository.Core/Classes/Infrastructure/DbalSchemaFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ public static function columnForProperties(string $columnName, AbstractPlatform
156156
$column = (new Column($columnName, Type::getType(Types::JSON)));
157157

158158
if ($platform instanceof AbstractMySQLPlatform) {
159-
$column = $column->setPlatformOption('collation', self::DEFAULT_MYSQL_COLLATION);
159+
$column = (new Column($columnName, Type::getType(Types::TEXT)))
160+
->setPlatformOption('collation', self::DEFAULT_MYSQL_COLLATION);
160161
}
161162

162163
return $column;

0 commit comments

Comments
 (0)