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
We should reconsider the fact that we don't record migrations with unmatched assumptions. Right now, they are skipped as a whole in the chain and are not recorded. That leads to issues:
Skipping a migration based on a version (version >= x, migrations no longer applied)
Given 3 migrations on version < x
Chain will be 1,2,3
Database will be upgrade to x
Chain will be 1,3, validation will fail due to unexpected migration (3 in this case, already being recorded)
It would have been prevented by having an "empty" migration for version x.
We should reconsider the fact that we don't record migrations with unmatched assumptions. Right now, they are skipped as a whole in the chain and are not recorded. That leads to issues:
Skipping a migration based on a version (version >= x, migrations no longer applied)
Given 3 migrations on version < x
Chain will be 1,2,3
Database will be upgrade to x
Chain will be 1,3, validation will fail due to unexpected migration (3 in this case, already being recorded)
It would have been prevented by having an "empty" migration for version x.
Migrations suddenly applied
Same, but chains switched.
cc @meistermeier @ali-ince
The text was updated successfully, but these errors were encountered: