HOTFIX: Added hardcoded platformOptions
to the "expected table" definition in
/lib/Doctrine/Migrations/Metadata/Storage/TableMetadataStorage.php
private function getExpectedTable(): Table
{
// ...
$schemaChangelog->addColumn(
$this->configuration->getVersionColumnName(),
'string',
['notnull' => true, 'length' => $this->configuration->getVersionColumnLength()]
);
// ...
}
Added hardcoded options for MySQL 8.0 with utf8mb4
private function getExpectedTable(): Table
{
// ...
$schemaChangelog->addColumn(
$this->configuration->getVersionColumnName(),
'string',
['notnull' => true, 'length' => $this->configuration->getVersionColumnLength(),
'platformOptions' => ['charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci']
]
);
// ...
}
All available documentation can be found here.