Skip to content

"Specified key was too long; max key length is 767 bytes" - for version column #720

Closed
@ittmann

Description

@ittmann

The default configured version_column_length in module.config.php of 1024 is too long in MySQL/MariaDB with utf8mb4 (which is the default in MySQL 8.0 and MariaDB 10.5 and later)

This gives an error when running migrations:migrate for the first time or migrations:sync-metadata-storage when metadata storage needs to be synchronized

In doctrine/migrations it was reduced to 191.
See doctrine/migrations#958 and https://github.com/doctrine/migrations/pull/960/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions