Flyway is an open-source database migration tool. It strongly favors simplicity and convention over configuration.
It has a Java API (also works on Android) for migrating the database on application startup. Alternatively, you can also use the Maven plugin, Gradle plugin, SBT plugin, Ant tasks or the Command-line client.
And if that not enough, there are third party plugins available for Spring Boot, Dropwizard, Grails, Play, Griffon, Grunt and more! More Info »
Supported databases are Oracle, SQL Server, SQL Azure, DB2, MySQL (including Amazon RDS), MariaDB, Google Cloud SQL, PostgreSQL (including Amazon RDS and Heroku), H2, Hsql Derby and SQLite .
Migrations can be written in SQL (database-specific syntax (such as PL/SQL, T-SQL, ...) is supported) or Java (for advanced data transformations or dealing with LOBs)