Jira issue originally created by user mikesimonson:
When a reserved word is used as a table name the migration does half the job as far as the quoting is concerned.
The generated statement for the creation of the table doesn't work.
CREATE TABLE Order .... # without quoting.
But when the table name is a reference in a foreign key it's ok.
ALTER TABLE Orders*Domains ADD CONSTRAINT FK_7FD78CA28D9F6D38 FOREIGN KEY (order*id) REFERENCES `Order` (id)
I suppose that at some point the table name is unquoted but I didn't find out where.
Comment created by @deeky666:
Can you please tell which platform/driver you are using? Also the DBAL version would help tracking this down. But there has been done a lot of work concerning identifier quotation in the last months already so maybe this is already solved by 2.4?
Can you please reinvestigate? Thanks.
Comment created by mikesimonson:
I was using doctrine-migration with the dbal 2.3.4.
How can I test for that before doctrine migration upgrade to the dbal 2.4
Issue was closed with resolution "Fixed"