We are currently using FlyWay in the project, and we have several environments, such as dev (local for developers), several application instances for QA pairs, setting ... And we have such a workflow with tasks: in the process → overview code -> QA -> merge .
We ran into a problem: suppose the developer, while working on branch A, provided a new version of migration, say, V331, while the guy QA does qa on another branch, say, B , in the QA environment. It may happen that the qa environment already has version v331, because several developers can create the same version number in different branches at different times ... Moreover, qa very often switches between branches, and that’s why the qa database becomes messy, especially the schema_version table , and this leads us to manually delete the broken version of the scheme, fix the old problems with the migrated version, and then start the migration process in the environment again. How do you feel about multiple environments and spans? Is there any best practice?
source
share