Skip to content

Using flyway 2.1.1 - #2

Open
x12a1f wants to merge 3 commits into
katta:masterfrom
MEDrecord:master
Open

Using flyway 2.1.1#2
x12a1f wants to merge 3 commits into
katta:masterfrom
MEDrecord:master

Conversation

@x12a1f

@x12a1f x12a1f commented Jul 11, 2013

Copy link
Copy Markdown

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.

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

Successfully merging this pull request may close these issues.

1 participant