You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello beautiful community. I've been developing a website that is close to launch using payload for the CMS. One issue I'd love some clarity on is how to safely and sanely manage changes to the schema in production. When developing, simply saving the config files is enough to change the database so it seems like I definitely need to clone the database and do development on a "dev" database. Once I'd like to push those changes to production, what is the method? Can somebody outline the process in pseudo code? Maybe for example a user collection where I'm changing a name group field with first and last fields in the group to firstName and lastName fields on the root of the user collection. I really don't have a grasp on what can be done with the migrations function in the documentation. Is this what I'm looking for, or is this used for moving between MongoDB and Postgres? Thank you in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello beautiful community. I've been developing a website that is close to launch using payload for the CMS. One issue I'd love some clarity on is how to safely and sanely manage changes to the schema in production. When developing, simply saving the config files is enough to change the database so it seems like I definitely need to clone the database and do development on a "dev" database. Once I'd like to push those changes to production, what is the method? Can somebody outline the process in pseudo code? Maybe for example a user collection where I'm changing a
name
group field withfirst
andlast
fields in the group tofirstName
andlastName
fields on the root of the user collection. I really don't have a grasp on what can be done with themigrations
function in the documentation. Is this what I'm looking for, or is this used for moving between MongoDB and Postgres? Thank you in advance!Beta Was this translation helpful? Give feedback.
All reactions