SpartaSystems/holdmail

DB Specific Database Migrations

Opened this issue · 1 comments

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

Perhaps add tests that verify the execution runs correctly.

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.