Skip to content

Schema Migration with Flyway #4559

Closed Answered by fmbenhassine
singhbaljit asked this question in Q&A
Discussion options

You must be logged in to vote

The core package in every versioned spring-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 the migration 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 the migration/5.0 package of the v5.0 jar on top of existing tables. There is a note a…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fmbenhassine
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4554 on March 04, 2024 16:26.