Migration ganeration, if dbType does not include ":".
msksbt opened this issue · 2 comments
msksbt commented
Hi, thanks for this awesome project.
( I'm sorry if there are any grammatical mistakes. )
I generated migration from JSON, but it's maked wrong statement.
I tried this:
{
..
"name": "field_name",
"dbType": "char,26",
..
}
but, it maked this:
$table->char,26('field_name');
I think that the problem occurs if dbType does not include ':', and there is a problem in follow clode block,
I tried this block to commented out, then the problem seems to be resolved.
laravel-generator/src/Common/GeneratorField.php
Lines 35 to 40 in 8575e2b
Thanks.
mitulgolakiya commented
@msksbt Good Catch. Feel free to put a PR if you can, or I will take care of it by this week.
msksbt commented
@mitulgolakiya OK. I will try to fix and PR. thanks.