mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1206: Add option to SchemaTool for ignoring unsupported tables #1515
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 (Jun 13, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jhartikainen:
I suggest adding a new feature to SchemaTool, which allows you to ignore tables, which contain unsupported column types.
Use case:
I've encountered this already a few times myself - Basically if you try to use orm:schema-tool:update with a database that contains tables with unsupported column types, it'll throw an error and you won't be able to use it at all. Because schema tool is extermely convenient when developing, I think it would be very useful to have support for this feature.
Implementation:
I think this should be doable by just changing SchemaTool/SchemaManager so, that SchemaManager would contain an additional method (or flag) which works like createSchema, but ignores tables that cause an exception, and SchemaTool would include a flag for using this instead of the standard approach.
I'm looking into implementing this myself, and will submit a patch if this seems like a reasonable approach.