You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's come up a couple of times in laminas' slack the question as to how to use a custom version comparator in doctrine migrations when using this library.
That should be documented, and the one I've been sharing is:
This example uses laminas service manager, and adds an anonymous class as the comparator, which compares version numbers regardless of their namespace, so that they can be run in order across different modules.
If no one beats me to it, I'll try to remember to create a PR for this if it would be welcome. I know its not just for this library, but everything else is pretty much available by configuration, so this comes up.
The text was updated successfully, but these errors were encountered:
It's come up a couple of times in laminas' slack the question as to how to use a custom version comparator in doctrine migrations when using this library.
That should be documented, and the one I've been sharing is:
config/cli-config.php
When run as:
vendor/bin/doctrine-migrations ...
This example uses laminas service manager, and adds an anonymous class as the comparator, which compares version numbers regardless of their namespace, so that they can be run in order across different modules.
If no one beats me to it, I'll try to remember to create a PR for this if it would be welcome. I know its not just for this library, but everything else is pretty much available by configuration, so this comes up.
The text was updated successfully, but these errors were encountered: