My group is considering using Liquibase within our Spring Boot startup. I'm concerned about accidentally rolling back schema changes. My scenario works like this:
- Liquibase changelogs 1, 2, and 3 exist.
- The db-changelog-master.xml mentions each of changelogs 1, 2, 3.
- Spring Boot is started, and liquibase confirms that the database is configured as requested.
- For another Spring Boot startup, a user has an obsolete Spring Boot configuration. This configuration has an old db-changelog.master.xml containing only changelogs 1, 2.
- When this variant Spring Boot starts up, does it automatically rollback the database schema, so it matches the changelogs 1, 2?
Is liquibase smart enough to NOT do an implicit rollback when the user doesn't explicitly run a rollback request? Or is there some configuration that must be made to prevent my scenario?