Same as #23944. The difference is that it affects when you need run ->change().
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();
});
@staudenmeir Could you help on this again? 馃槃
I'll look into it.
I've submitted a PR: https://github.com/doctrine/dbal/pull/3668
In the meantime, you'll need to quote the collation yourself:
Schema::table('addresses', function (Blueprint $blueprint) {
$blueprint->string('addressable_type', 400)->collation('`binary`')->change();
^ ^
});
It will be fixed in the next release of doctrine/dbal.
Most helpful comment
I'll look into it.