badaso icon indicating copy to clipboard operation
badaso copied to clipboard

DB Management - Error creating integer field with default value

Open Dri372 opened this issue 2 years ago • 0 comments

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:

  1. Go to Darabase Managment
  2. Edit an existing table
  3. Add a new field "test", type integer, default value 2 (nullable or not)
  4. 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

Dri372 avatar Sep 08 '22 07:09 Dri372