Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add how-to documentation for test-only database migrations with Flyway/Liquibase #26796

Closed
philwebb opened this issue Jun 7, 2021 · 3 comments
Assignees
Labels
type: documentation A documentation update
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented Jun 7, 2021

See #26692 for background.

Our current documentation has the following:

If you are using a Higher-level Database Migration Tool, like Flyway or Liquibase, you should use them alone to create and initialize the schema. Using the basic schema.sql and data.sql scripts alongside Flyway or Liquibase is not recommended and support will be removed in a future release.

It would be nice if rather than just saying what users shouldn't do, we provide some details of how Flyway and Liquibase can be used for test-only migrations.

@philwebb
Copy link
Member Author

philwebb commented Jun 7, 2021

We can also mention @Sql from org.springframework.test.context.jdbc.

@michael-simons
Copy link
Contributor

That’s great. If you’d like a pair of eyes to review, please ping me in the PR.

@philwebb philwebb modified the milestones: 2.4.x, 2.5.x Jun 9, 2021
humaolin pushed a commit to humaolin/spring-boot that referenced this issue May 7, 2022
This commit removes the `.RELEASE` suffix of the released version, if
necessary. Such commit is not present on GitHub and the changelog
generation process fails to find the milestone to use to generate the
changelog.

Closes spring-projectsgh-26796
@wilkinsona wilkinsona modified the milestones: 2.5.x, 2.6.x May 19, 2022
@wilkinsona wilkinsona modified the milestones: 2.6.x, 2.7.x Nov 24, 2022
@landsman

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

5 participants