doctrine/migrations — Issue #61: migrations:migrate doesn't cross-check all file migration versions with DB entries
Author: Gamesh
Created: 2012-02-28 11:44:47+00:00
State: open

the problem arises when multiple developers work with migrations and in one case migrations could be skipped:

1. Developer A creates migration 20120228123443 and runs it against local DB.
2 . In the mean time unaware of this migration developer B creates migration 20120228114838 runs it against local DB and pushes it to the central repository.
3. Developer A pulls changes, receives migration 20120228114838, runs doctrine.php migrations:migrate.

The 20120228114838 is skipped because last migration in DB is newer then the one received, and since a full cross-ref with DB is not run, the migration does not get executed.