Skip to content

Migration - float() creates DOUBLE instead of FLOAT #18776

Closed
@steveheinsch

Description

@steveheinsch
  • Laravel Version: 5.4.16
  • PHP Version: PHP 7.1.1-1+deb.sury.org~xenial+1 (cli) (built: Jan 20 2017 09:20:20) ( NTS )
  • Database Driver & Version: mysql Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using EditLine wrapper

Description:

In a migration, using the float() type actually creates a double()

Steps To Reproduce:

public function up()
{
    Schema::create('test_table', function (Blueprint $table) {
        $table->increments('id');
        $table->float('test', 5, 2);
        $table->timestamps();
    });
}

screen shot 2017-04-11 at 9 02 18 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions