From 5c886fb653386ce057070258d99f7d850161ae1f Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 7 Feb 2024 22:01:48 +0100 Subject: [PATCH] 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. --- src/Console/ModelsCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 8e6be5c..8759a34 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -551,6 +551,7 @@ class ModelsCommand extends Command case 'datetimetz': case 'datetime': case 'decimal': + case 'binary': $type = 'string'; break; case 'integer':