Skip to content

Schema Builder: collaction() should be wrapped by quotes (when change()) #29804

@rentalhost

Description

@rentalhost
  • Laravel Version: 5.8.34 (lastest)
  • PHP Version: PHP 7.2.21
  • Database Driver & Version: MariaDB 10.3.17

Description:

Same as #23944. The difference is that it affects when you need run ->change().

Steps to reproduce

Schema::create('addresses', function (Blueprint $blueprint) {
    // That will works, once that was fixed by #23989.
    $blueprint->string('addressable_type')->collation('binary');
});

Schema::table('addresses', function (Blueprint $blueprint) {
    // That is the current problem.
    $blueprint->string('addressable_type', 400)->collation('binary')->change();
});

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