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
Having only Repeatable Migrations crashes Flyway #1430
Comments
Could you please post the full stacktrace? |
Sure:
|
@cristalp do you apply migrations from different applications? |
We have different applications that define the database server and schema with different paths, like db/migration/database/schema/V1.0.0__my_script.sql. During the build, all scripts found for an application are packed into a ZIP file. Then we have a shell script that takes the ZIP file, unpacks it and applies all migrations that it finds. Our Flyway configuration has a correspoding directory structure with /stage/database/schema/conf/flyway.conf |
Just we have the same issue. |
Well, most of our application just use one database and leave the others alone. But there's one database which is used by most applications, and for that database we set |
I believe I just ran into this error as well, even on 4.1.1 which has your commit beae6ff However, the commit seems like it just adds some tests. Am I missing something? |
@blai-cartera I just ran into this as well. Looks like it's not fixed on 4.1.2. |
@18thletter Please open a new issue and provide exact steps on how to reproduce. |
@axelfontaine FWIW, my steps previously were same as original ticket: just point flywaydb to target a folder that only has R_ scripts. Again, looking at the commits that seem associated with this issue #, I think I only see code changes to tests? Maybe the actual fix got lost somewhere or I'm a dummy and not seeing the changes :) |
@blai-cartera We have a test that covers this exact scenario and it passes: https://github.com/flyway/flyway/blob/master/flyway-core/src/test/java/org/flywaydb/core/FlywayMediumTest.java#L637 |
I just ran into the same error with version 4.1.2. (command line). |
@jbrusis Please open a new issue and provide exact steps on how to reproduce. |
What version of Flyway are you using?
4.0.3
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
Command-line
What database are you using (type & version)?
Oracle, SQL Server
What operating system are you using?
Red Hat Linux
What did you do?
We're using the new Repeatable Migration feature. However, in one of our JARs there was no migration script, just a Repeatable Migration script. Flyway apparently doesn't like that ;-)
ERROR: java.lang.ArrayIndexOutOfBoundsException: -1
What did you expect to see?
I would have liked the Repeatable Migration to be executed.
What did you see instead?
The error above
The text was updated successfully, but these errors were encountered: