-
Is it possible to have several migration timelines, where a migration in one timeline is dependent on the progress in another timeline? By timeline I mean a series of migrations that relate to the same tool (is there a better term for this?). For example, I might have one migration timeline for managing (adding, removing, changing settings etc) Apache Kafka topics, and another migration timeline for my app's database schema. I could also have a timeline for data that is dynamic but an integral part of the application. For example, let's say that I have a timeline for my database. In migration 155, I add a data structure to store user roles, something along the lines of:
In my data timeline, I want to fill this with a number of roles, that could change later, but that are to be considered as fairly constant:
From the above description, it is obvious that migration 17 in the data timeline cannot be run before migration 155 in the schema timeline has been run. Is there a way to deal with this kind of dependencies in umzug? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I have a need for a similar feature. It could potentially be implemented with a custom sorting function (#153). |
Beta Was this translation helpful? Give feedback.
-
why not have two sets of migrations, with their state managed separately? |
Beta Was this translation helpful? Give feedback.
why not have two sets of migrations, with their state managed separately?