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.
This commit is contained in:
Sven
2024-02-07 22:01:48 +01:00
committed by GitHub
parent 7d69dc6ea0
commit 5c886fb653
+1
View File
@@ -551,6 +551,7 @@ class ModelsCommand extends Command
case 'datetimetz':
case 'datetime':
case 'decimal':
case 'binary':
$type = 'string';
break;
case 'integer':