mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-853: Mysql: Drop schema for entities doesnt work if Database contains already tables with 'enum' Field #1056
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 @doctrinebot on GitHub (Nov 1, 2010).
Jira issue originally created by user schnueggel:
Dropping Entities with:
throws:
Doctrine\DBAL\DBALException: Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it
The Database already contains some tables with enum fields. But those should not be affected. They have no constraints to the tables managed by the EntityManager
Some debugging brought me to the point that Doctrine2 is trying to drop complete database, even metaclasses where given.
In Doctrine\ORM\Tools\SchemaTool $classes will not be used in any way
Also method SchemaTool::_getDropSchemaTablesDatabaseMode($classes) seems not to be used.
@doctrinebot commented on GitHub (Nov 16, 2010):
Comment created by @beberlei:
Fixed, duplicate of DDC-629
@doctrinebot commented on GitHub (Nov 16, 2010):
Issue was closed with resolution "Duplicate"