-
-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Description
Bug Report
Q | A |
---|---|
BC Break | yes |
Version | 3.1.1 |
Summary
We have a bundle that holds migrations in our Application we access those migrations and want them to be execute int he order of year and month ideally also day but ok there is no option for it.
In general the sorting looks at the namespace first and afterwards at the date
Current behavior
Upon the migrate command the migrations are first sorted by namespace and afterwards by year and month
How to reproduce
Have a Bundle with Migrations + an application executing those and it's own.
doctrine_migrations:
organize_migrations: BY_YEAR_AND_MONTH
migrations_paths:
'Bundle\DoctrineMigrations': '%kernel.project_dir%/vendor/Bundle-Vendor/custom-bundle/migrations/'
'DoctrineMigrations': '%kernel.project_dir%/migrations'
DoctrineMigrations\Version20210305101226 vs Bundle\DoctrineMigrations\Version20200110165135
bin/console doctrine:migrations:migrate latest --dry-run --verbose
Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
[notice] Migrating (dry-run) up to Bundle\DoctrineMigrations\Version20210331160220
[info] ++ migrating DoctrineMigrations\Version20210305101226
[info] Migration DoctrineMigrations\Version20210305101226 migrated (took 19.7ms, used 22M memory)
[info] ++ migrating DoctrineMigrations\Version20210311163822
[info] Migration DoctrineMigrations\Version20210311163822 migrated (took 0.2ms, used 22M memory)
[info] ++ migrating DoctrineMigrations\Version20210318104805
[info] Migration DoctrineMigrations\Version20210318104805 migrated (took 0.2ms, used 22M memory)
[info] ++ migrating DoctrineMigrations\Version20210401115610
[info] Migration DoctrineMigrations\Version20210401115610 migrated (took 0.2ms, used 22M memory)
[info] ++ migrating Bundle\DoctrineMigrations\Version20200110165135
[info] Migration Bundle\DoctrineMigrations\Version20200110165135 migrated (took 0.2ms, used 22M memory)
[info] ++ migrating Bundle\DoctrineMigrations\Version20210319153423
[info] Migration Bundle\DoctrineMigrations\Version20210319153423 migrated (took 0.3ms, used 22M memory)
[info] ++ migrating Bundle\DoctrineMigrations\Version20210319163957
[info] Migration Bundle\DoctrineMigrations\Version20210319163957 migrated (took 0.1ms, used 22M memory)
[info] ++ migrating Bundle\DoctrineMigrations\Version20210330132940
[info] Migration Bundle\DoctrineMigrations\Version20210330132940 migrated (took 0.2ms, used 22M memory)
[info] ++ migrating Bundle\DoctrineMigrations\Version20210331160220
[info] Migration Bundle\DoctrineMigrations\Version20210331160220 migrated (took 0.2ms, used 22M memory)
[notice] finished in 52.7ms, used 22M memory, 9 migrations executed, 36 sql queries
Expected behavior
Migrations are executed in Order the config defines
pounard
Metadata
Metadata
Assignees
Labels
No labels