Skip to content

MySql enum field throws error during migration #7026

@G0URAB

Description

@G0URAB

Bug Report

Q A
Version 4.3

Summary

  • Existing MySql enum field throws error during migration after upgrading from 4.2.4 to 4.3.

Current behavior

Column column name has invalid type

Expected behavior

  • MySql enum fields are supported
  • No error is thrown during migration

How to reproduce

  • Create an enum field in MySql with an equivalent entity property e.g. status
    #[Column(type: "string", columnDefinition: "ENUM('visible', 'invisible')")]
    private $status;
  • Execute migration e.g. php bin/console doctrine:migrations:migrate

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions