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

DB Specific Database Migrations #15

Open
johnament opened this issue Jan 9, 2017 · 1 comment
Open

DB Specific Database Migrations #15

johnament opened this issue Jan 9, 2017 · 1 comment

Comments

@johnament
Copy link
Contributor

  • Clearly mark the DB migrations as mysql/mariadb
  • Placeholder for other DB types

Perhaps add tests that verify the execution runs correctly.

@barryoneill
Copy link
Collaborator

Looks like most the work has been done for us in spring-boot 1.5:

Vendor specific flyway migrations

You can now define flyway migration that are specific to a database vendor. To use vendor specific migrations, set the flyway.locations property as follows:

flyway.locations=db/migration/{vendor}

http://docs.spring.io/spring-boot/docs/1.5.x-SNAPSHOT/reference/htmlsingle/#howto-execute-flyway-database-migrations-on-startup

I'll be upgrading to 1.5 very shortly so we'll be able to make use of this.

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

No branches or pull requests

2 participants