Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The type tinytext is not mapped in the 'eloquent_type_to_method' key in the config file. #189

Closed
Milestone
@larg000

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /