badaso
badaso copied to clipboard
DB Management - Error creating integer field with default value
Describe the bug In Database management when adding a integer filed with default value the generated migration file is wrong.
To Reproduce Steps to reproduce the behavior:
- Go to Darabase Managment
- Edit an existing table
- Add a new field "test", type integer, default value 2 (nullable or not)
- Migration file : $table->integer('test')2 <------ wrong syntax
Expected behavior $table->integer('test')->default(2)
Badaso (please complete the following information):
- Version 2.5.2