Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.32k stars 588 forks source link

Text columns are generated incorrectly #113

Open yahya-uddin opened 7 years ago

yahya-uddin commented 7 years ago

Text columns as generated as follows:

$table->text('foo', 65536);

This is incorrect, as the text column only accepts 1 parameter.

It should either be:

$table->string('foo', 65536);

or

$table->text('foo');

zoranlorkovic commented 7 years ago

Yes, I also find this as error in generated migration files.