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
When you run the doctrine:migrations:migrate command, doctrine will check all the directories, compare with the current table and get what it has to execute. The issue is that it sorts the migrations to be executed by its full path, and not just the VersionYYYYMMDDHIS part of the class name. That means it might run migrations out of chronological order .
For example, if the command finds the following migrations to execute:
This is a problem if one of your bundles depends on tables maintained by another bundle. Even if you define on your composer.json the correct version minimum req, if both packages are added on the same deploy, the migrations will break because they will not run on chronological order.
The text was updated successfully, but these errors were encountered:
Let's say you have the follow
doctrine_migrations.yaml
file:When you run the
doctrine:migrations:migrate
command, doctrine will check all the directories, compare with the current table and get what it has to execute. The issue is that it sorts the migrations to be executed by its full path, and not just theVersionYYYYMMDDHIS
part of the class name. That means it might run migrations out of chronological order .For example, if the command finds the following migrations to execute:
They will be executed in the following order:
When chronological it should be
This is a problem if one of your bundles depends on tables maintained by another bundle. Even if you define on your composer.json the correct version minimum req, if both packages are added on the same deploy, the migrations will break because they will not run on chronological order.
The text was updated successfully, but these errors were encountered: