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

Repeatable migration with version incorrectly detected as versioned migration #1587

mtcremin opened this issue Apr 3, 2017 · 0 comments


Copy link

mtcremin commented Apr 3, 2017

What version of Flyway are you using?


Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)


What database are you using (type & version)?

MS SQL 2016

What operating system are you using?

Windows 10

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)


flyway migrate
update files:

flyway info
| Version | Description | Installed on | State |
| | << Flyway Schema Creation >> | 2017-04-03 14:57:02 | Success |
| 1.1 | create test2 | 2017-04-03 14:57:02 | Success |
| 1.2 | create test4 | 2017-04-03 14:57:02 | Success |
| | create test1 | 2017-04-03 14:57:02 | Outdate |
| | create test3 | 2017-04-03 14:57:02 | Outdate |
| | create test1 | | Pending |
| | create test3 | | Pending |

What did you expect to see?

ERROR: V__create_test3.sql - Invalid version missing version number
ERROR: R1.1__create_test2.sql - Invalid repeatable cannot contain version number

What did you see instead?

R and V files are treated the similarly. If an R file has a version (R1.1__) it is treated as a version file. When a V file does not include a version (V__) it is treated as a repeatable file.

Is this expected?

@axelfontaine axelfontaine added this to the Flyway 4.2.0 milestone Apr 3, 2017
@axelfontaine axelfontaine changed the title Repeatable Migration Behavior Repeatable migration with version incorrectly detected as versioned migration Apr 27, 2017
axelfontaine pushed a commit to flyway/ that referenced this issue Apr 27, 2017
dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants