Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQLRepository uppercase property error #34

Closed
rcoves opened this issue Mar 12, 2021 · 1 comment
Closed

MySQLRepository uppercase property error #34

rcoves opened this issue Mar 12, 2021 · 1 comment

Comments

@rcoves
Copy link

rcoves commented Mar 12, 2021

Hello,
while trying to generate migrations i got an error

Undefined property: stdClass::$Type at D:\Dev\wikitaf\vendor\kitloong\laravel-migrations generator\src\KitLoong\MigrationsGenerator\Repositories\MySQLRepository.php:22

The problem seems to be the Type property on MySQLRepository::getSetPresetValues and MySQLRepository::getEnumPresetValues

Replacing by type (without uppercase) works fine for me.

package version : "^4.4",

image

@kitloong
Copy link
Owner

kitloong commented Jul 4, 2021

Sorry for my late reply.
It seems in the column should be uppercase Type as stated in the official doc
https://dev.mysql.com/doc/refman/8.0/en/show-columns.html

Could you also provide your MySQL version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants