DDC-2563: orm:schema-tool:update generates ALTER TABLE tablename without backquoting tablename with #3218

Open
opened 2026-01-22 14:15:42 +01:00 by admin · 0 comments
Owner

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 Index ADD Merchant_Id BIGINT DEFAULT NULL

Naturally 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.

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 `Index` ADD `Merchant_Id` BIGINT DEFAULT NULL Naturally 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.
admin added the Bug label 2026-01-22 14:15:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3218