[PR #9019] validate schema command: allow to debug missing schema updates list #11319

Open
opened 2026-01-22 16:10:23 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/9019

State: closed
Merged: Yes


Hi,

This PR allows seeing why you get the message "The database schema is not in sync with the current mapping file" by displaying all the missing SQL so the database schema can be up-to-date. This debug is only activated when at least the verbose mode of the console is activated.

See you. COil :)

Questions:

  • Do I need to cache the update list, so there is only one call to getUpdateSchemaList?
  • Is it OK the tests the getVerbosity level? Or should it be displayed in every case (like for the mapping)?
  • Need tests? There is currently no test for the ValidateSchemaCommand if I am right (except that is callable with orm:validate-schema)
**Original Pull Request:** https://github.com/doctrine/orm/pull/9019 **State:** closed **Merged:** Yes --- Hi, This PR allows seeing why you get the message "The database schema is not in sync with the current mapping file" by displaying all the missing SQL so the database schema can be up-to-date. This debug is only activated when at least the verbose mode of the console is activated. See you. COil :) Questions: * Do I need to cache the update list, so there is only one call to `getUpdateSchemaList`? * Is it OK the tests the getVerbosity level? Or should it be displayed in every case (like for the mapping)? * Need tests? There is currently no test for the `ValidateSchemaCommand` if I am right (except that is callable with `orm:validate-schema`)
admin added the pull-request label 2026-01-22 16:10:23 +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#11319