Skip to content

Commit c9be3f0

Browse files
Sfonxsd3v2a
authored andcommitted
Support the BINARY(...) database field type (barryvdh#1434)
In singlestore we define some strings as $table->char($columnName, 40)->charset('binary')->collation('binary'); In singelstore, this becomes 'BINARY(40)' instead of 'CHAR(40) CHARACTER SET 'binary' COLLATE 'binary' This change would allow the generated proeperties to be 'string' instead of 'mixed', as using a string is correct in this case.
1 parent ac52f47 commit c9be3f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ public function getPropertiesFromTable($model)
551551
case 'datetimetz':
552552
case 'datetime':
553553
case 'decimal':
554+
case 'binary':
554555
$type = 'string';
555556
break;
556557
case 'integer':

0 commit comments

Comments
 (0)