For CD/CI it would be helpful if doctrine cli controller would report the current version of migration.
We've changed doctrine:migrationversion that way that if no version is provided the action will report current migration version.
By this it is possible to decide on script level if migration is required or not.
Find patch attached.
Updated by Karsten Dambekalns over 8 years ago
- Category set to - Migrations -
- Status changed from New to Needs Feedback
- Target version deleted (
- Has patch set to No
If you only know the latest version applied, you do not yet know if a migration might be needed. There could be migrations "in between" that have been added by installed packages and have a lower identifier than the latest applied one.
What could work is a quiet flag to
migrationstatus (similar to the quiet flag for migrate) that outputs the needed migrations, one per line.