mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2563: orm:schema-tool:update generates ALTER TABLE tablename without backquoting tablename with #3218
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 (Jul 22, 2013).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user iterra:
I have an entity "Index"
Running doctrine orm:schema-tool:update using CLI generates following
ALTER TABLE Index ADD Merchant_Id BIGINT DEFAULT NULL
Note there are no backquotes around Index, should be like this:
ALTER TABLE
IndexADDMerchant_IdBIGINT DEFAULT NULLNaturally SQL fails due to the use of mysql token word as a table name.
Manual workarounds exist, but all DDL should really use proper quotes.