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
Migrations could have a uuid instead of a number, and the 'version' table should just have the list of migrations already done. The order in which the migrations are performed is important, of course, but that is already determined by the order of the migrations slice in migrations.go.
So, backporting a migration or merging a PR into master will hardly ever produce a conflict except when one migration is dependent of another (but even that case can be covered, for instance):
If a migration signals another as a dependency and that one migration was not yet merged (e.g. when backporting), the integration tests will simply fail.
The text was updated successfully, but these errors were encountered:
guillep2k
changed the title
Proposal: a new kind of migration version check
Proposal: use uuid instead of numbers to identify migration steps
Oct 21, 2019
Migrations could have a uuid instead of a number, and the 'version' table should just have the list of migrations already done. The order in which the migrations are performed is important, of course, but that is already determined by the order of the
migrations
slice inmigrations.go
.So, backporting a migration or merging a PR into master will hardly ever produce a conflict except when one migration is dependent of another (but even that case can be covered, for instance):
If a migration signals another as a dependency and that one migration was not yet merged (e.g. when backporting), the integration tests will simply fail.
The text was updated successfully, but these errors were encountered: