mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
EnumType issue after upgrade #7383
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @meiyasan on GitHub (Jun 17, 2024).
Bug Report
Summary
I am investigating an issue with custom EnumType definition in MySQL.
I have defined an EnumType following Doctrine predicates quite some time ago; now that I upgraded to the last version of ORM. When I try to upgrade the database, I get a different db schema.
Current behavior
The ALTER line rendered is the following:
ALTER TABLE extensionAbstract CHANGE action action ENUM('ACTION_DELETE', 'ACTION_INSERT', 'ACTION_UPDATE') NOT NULL COMMENT 'ENUM(ACTION_DELETE, ACTION_INSERT, ACTION_UPDATE)';I am suspecting the change might be due to some modification in
./vendor/doctrine/dbal/src/Schema/MySQLSchemaManager.php; the following line has been modified.How to fix it ?
Expected behavior
Looking at the expected behavior from earlier version, I get should get:
#_type: Base\Enum\EntityAction^ {#476}in the db schema, but it returns stringType@meiyasan commented on GitHub (Jun 17, 2024):
wrong repo, I just opened a new discussion here: https://github.com/doctrine/dbal/issues/6443