This question is not strictly related to spring.

Since im not an expert with mongodb, i wonder how to deal with changes of the database due to a new release of my application. Usually u have some sql scripts that are executed when a new version is released. Do i have to use a javascript-file and execute it somehow? How do i keep my changes synchronous ("working") to the spring-data powered app?

Might be a dumb question, but i kinda see trouble coming. Thanks for any comments.