I have a feature branch that is going to need considerable work before it's code and data will be merged into main, and I still have to do occasional maintenance on main. For code only this is no problem with git branch management, but the feature branch database has significant structure and content differences with main, I can fairly easily use a different database instance for each one, and merge structure changes manually somehow when needed, but what about content data?
Right now, for the quickest and dirtiest flow, I have one db, and just let Payload and Drizzle drop and add tables as I switch between branches, without much stress as I have almost no content. If needed I can use a simple seeding script to always recreate test content for the feature branch.
It's almost entirely new data and structures on the feature branch, so I could, if I have to, code a migration function to pull new data from the dev db to the prod db in a deployment workflow, but I have a feeling Payload has something to offer to help in this regard. It seems like a fairly reasonable use case to me. Could someone more experienced please point me in a direction I can follow to help me automate this workflow as much as possible.