-
-
Notifications
You must be signed in to change notification settings - Fork 838
Closed
Labels
Description
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
| if (!Str::contains($dbInput, ':')) { | |
| $this->dbType = $dbInput; | |
| $this->prepareMigrationText(); | |
| return; | |
| } |
Thanks.