Skip to content

Commit

Permalink
Merge pull request #28975 from JSRM99/5.8
Browse files Browse the repository at this point in the history
[5.8] Make sure changing a database field to binary does not include collation
  • Loading branch information
taylorotwell committed Jun 28, 2019
2 parents d8573ed + 183532e commit ffedc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Schema/Grammars/ChangeColumn.php
Expand Up @@ -121,7 +121,7 @@ protected static function getDoctrineColumnChangeOptions(Fluent $fluent)
$options['length'] = static::calculateDoctrineTextLength($fluent['type']);
}

if ($fluent['type'] === 'json') {
if (in_array($fluent['type'], ['json', 'binary'])) {
$options['customSchemaOptions'] = [
'collation' => '',
];
Expand Down

0 comments on commit ffedc9b

Please sign in to comment.