[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
Uh oh!
There was an error while loading. Please reload this page.
-
Currently:
getMigrations()in the Recipe file returns a flat array of classes.php bakery bakefor the first time, orphp bakery migratelater on, runs all of these migrations as a single step.-sflag onphp bakery migrategetMigrations()before running eitherphp bakery bakeorphp bakery migrateI 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 bakeonce 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