katta/gradle-flyway-plugin — pull request #2 by ralphvanetten (2013-07-11 12:03:29+00:00)
Title: Using flyway 2.1.1

Hi,

I wanted to use flyway 2.1.1 because newer versions can fetch SQL migrations from anywhere of the filesystem. (locations=filesystem:somedir)

I did a few simple tests (clean, init, migrate and status) and they all seem to work fine with a simple SQL migration. I have not tested any Java migrations though.

There are probably some problems with existing migrations (see http://flywaydb.org/documentation/releaseNotes.html) when upgrading to 2.1.1
The most problematic in my case is that initVersion is not set to 0 anymore but it is 1 instead. This means 'gradle flywayInit' will create version 1 and if you call your own migration also 1, your migration is not run. So you should not create migrations with version 1.

Thanks.