Skip to content

Commit 5c886fb

Browse files
authored
Support the BINARY(...) database field type (#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 7d69dc6 commit 5c886fb

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)