Repository navigation
Naming, scoping, and categorizing migrations #7498
Proposed new naming and structureThis is my proposed naming and directory structure for our current migrations based on my research. Would love to hear your thoughts! OverviewThe migrations in How should we structure migrations to accomplish the following:
Other codemod references: CodeshiftCommunity ScopeWe should revisit the scope of some of our current migrations, narrowing down what they target. For example, we can split current the current One handles replacing the We can then create composed migrations ( Naming conventionThe naming of a migration should be clear so that is is apparent to the user what target is being modified and the action it is performing. ProposedAlternativeWith versionVersioningWe limit the scope of a migration to a specific version–from one API to another. This can be organized with the directory structure and also documented on the |
Replies: 5 comments
|
Love this. I don't have any strong suggestions but this seems logical and scalable to me. |
|
Love this direction, Sam 🙌🏽 My vote is for the I also like the idea of separating out the function migrations so they're easier for folks to review after running in their apps. We can still group them together in the docs, something like: |
|
Huge +1 to what Chloe said! Love this direction Sam!! 🤩🎉❤️🚀✨ The |
|
Also +1ing Chloe's feedback! I think the proposed Regarding "With versions", I think I prefer Awesome research and breakdown @samrose3!! |
Just following up here with the decided approach. #7606 updates the current migration naming and scope into the following: