8000 GitHub - Angle/doctrine-migrations: Doctrine Database Migrations Library (3.6.0 fix)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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.

About

Doctrine Database Migrations Library (3.6.0 fix)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.9%
  • Shell 0.1%
0