Schema Migration with Flyway #4559
-
I understand that
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It would be great if support for liquibase is also added along side flyway |
Beta Was this translation helpful? Give feedback.
-
The For example, if you are deploying a new batch app using v5.0, you can apply the scripts from the Now the way to apply these scripts (manually or with a migration tool) is out of the scope of Spring Batch. Hopefully this answers your questions. |
Beta Was this translation helpful? Give feedback.
-
I believe my last comment answers the question, so I am closing this discussion. But if you need more help, please add a comment. |
Beta Was this translation helpful? Give feedback.
The
core
package in every versionedspring-batch-core
jar contains the DDL scripts that can be applied without modification for new apps using that version (ie creating the tables from scratch). For existing apps migrating from a prior version, one should apply the DDL scripts in themigration
package up until the current version.For example, if you are deploying a new batch app using v5.0, you can apply the scripts from the
core
package of the v5.0 jar. If you are migrating an existing app from v4.3 to v5.0 (ie the tables were already created from the v4.3 jar), then you need to apply the scripts from themigration/5.0
package of the v5.0 jar on top of existing tables. There is a note a…