-
-
Notifications
You must be signed in to change notification settings - Fork 159
Description
small bug
The type tinytext is not mapped in the 'eloquent_type_to_method' key in the config file.
at C:\xampp\htdocs\RDJ\vendor\crestapps\laravel-code-generator\src\DatabaseParsers\MysqlParser.php:341
337▕ return 'boolean';
338▕ }
340▕ if (!array_key_exists($type, $map)) {
342▕ }
344▕ return $map[$type];
345▕ }
1 C:\xampp\htdocs\RDJ\vendor\crestapps\laravel-code-generator\src\DatabaseParsers\MysqlParser.php:261
CrestApps\CodeGenerator\DatabaseParsers\MysqlParser::getDataType("tinytext", "tinytext")
2 C:\xampp\htdocs\RDJ\vendor\crestapps\laravel-code-generator\src\DatabaseParsers\ParserBase.php:156
CrestApps\CodeGenerator\DatabaseParsers\MysqlParser::getTransfredFields()
Environment:
- Laravel-Code-Generator Version: 2.4.9
- Laravel Version: 10.0.0
Description:
mysql TINYTEXT type is not recognize (all other varchar/char/text/mediumtext/longtext are ok)
can bypass by changing into varchar(255) or char(255)
Steps/Commands To Reproduce:
php artisan resource-file:from-database Category
(where titre field is tinytext type instead of varchar or char or text)