DDC-1616: SchemaTool - CreateCommand should dump "valid" SQL and omit ATTENTION line #2031

Closed
opened 2026-01-22 13:37:56 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 24, 2012).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user raphaelstolt:

When running "doctrine orm:schema-tool:create --dump-sql" it should not omit the semicolon of the last SQL statement (though the current SQL output is also valid and executable) and it should omit the ATTENTION line (or output it as an SQL commented line) as the schema isn't applied/created anyways.

This would make it much easier to write for e.g. the SQL schema to a file for further processing; but might also break systems (e.g. buildsystems) which have a workaround for the above mentioned shortcoming.

Originally created by @doctrinebot on GitHub (Jan 24, 2012). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user raphaelstolt: When running "doctrine orm:schema-tool:create --dump-sql" it should not omit the semicolon of the last SQL statement (though the current SQL output is also valid and executable) and it should omit the ATTENTION line (or output it as an SQL commented line) as the schema isn't applied/created anyways. This would make it much easier to write for e.g. the SQL schema to a file for further processing; but might also break systems (e.g. buildsystems) which have a workaround for the above mentioned shortcoming.
admin added the Improvement label 2026-01-22 13:37:56 +01:00
admin closed this issue 2026-01-22 13:37:57 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 22, 2012):

Comment created by @guilhermeblanco:

Fixed by 48dcee9d60

@doctrinebot commented on GitHub (Feb 22, 2012): Comment created by @guilhermeblanco: Fixed by https://github.com/doctrine/doctrine2/commit/48dcee9d60459fce1542d11536d465f5d89cff55
Author
Owner

@doctrinebot commented on GitHub (Feb 22, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 22, 2012): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/e3b6a9aa1e227b3c0436

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/e3b6a9aa1e227b3c0436 - [11154_fix_execute_schema_command.patch](https://gist.github.com/e3b6a9aa1e227b3c0436#file-11154_fix_execute_schema_command-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2031