[Feature Request] Support migration steps in Recipe::getMigrations() #1281
StrykeSlammerII
started this conversation in
Ideas & Feature Requests
Replies: 1 comment 2 replies
-
The issue I have with this is migration dependencies. If |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently:
getMigrations()
in the Recipe file returns a flat array of classes.php bakery bake
for the first time, orphp bakery migrate
later on, runs all of these migrations as a single step.-s
flag onphp bakery migrate
getMigrations()
before running eitherphp bakery bake
orphp bakery migrate
I have a project where I would like to group my migrations in separate steps from the core UF migrations.
Further, I would like to group my migrations in different steps themselves.
Also, it happens that I am changing DB engines after having developed multiple such stages of migrations.
In order to separate the migration steps that I want, I will have to edit
getMigrations()
multiple times rather than runningphp bakery bake
once on the new database.Would it be possible to return a nested array in
getMigrations()
for each step?Something like
Something other than nested arrays would be acceptable, that's just the first backwards-compatible option that came to mind.
Beta Was this translation helpful? Give feedback.
All reactions