Skip to content

Angle/doctrine-migrations

 
 

Repository files navigation

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']     
            ]
        );
        
        // ...  
    }

Doctrine Migrations

Build Status Code Coverage Packagist Downloads Packagist Version GitHub license

Documentation

All available documentation can be found here.