DDC-99: Add dropOrphanedTables() command to SchemaTool #123

Closed
opened 2026-01-22 12:27:55 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 2, 2009).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @beberlei:

There should be a dropOrphanedTables() method which should optionally be called from updateSchema() or be called explicitly with an array of classmetadata.

This way you could add a CLI task

php doctrine schema-tool --drop-orphaned

and/or an option:

php doctrine schema-tool --update --force-drop-orphaned

This would make the problem of missing classes in the update command which are dropped explicit for the developer.

Originally created by @doctrinebot on GitHub (Nov 2, 2009). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @beberlei: There should be a dropOrphanedTables() method which should optionally be called from updateSchema() or be called explicitly with an array of classmetadata. This way you could add a CLI task ``` php doctrine schema-tool --drop-orphaned ``` and/or an option: ``` php doctrine schema-tool --update --force-drop-orphaned ``` This would make the problem of missing classes in the update command which are dropped explicit for the developer.
admin added the New Feature label 2026-01-22 12:27:55 +01:00
admin closed this issue 2026-01-22 12:27:55 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 2, 2009):

@doctrinebot commented on GitHub (Nov 2, 2009): - duplicates [DDC-114: Extend Drop Schema ](http://www.doctrine-project.org/jira/browse/DDC-114)
Author
Owner

@doctrinebot commented on GitHub (Nov 4, 2009):

Comment created by @beberlei:

Closed in favour of DDC-114, which extends this proposal quite a bit.

@doctrinebot commented on GitHub (Nov 4, 2009): Comment created by @beberlei: Closed in favour of [DDC-114](http://www.doctrine-project.org/jira/browse/DDC-114), which extends this proposal quite a bit.
Author
Owner

@doctrinebot commented on GitHub (Nov 4, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 4, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#123