{"action":"created","issue":{"url":"https://api.github.com/repos/flyway/flyway/issues/1430","repository_url":"https://api.github.com/repos/flyway/flyway","labels_url":"https://api.github.com/repos/flyway/flyway/issues/1430/labels{/name}","comments_url":"https://api.github.com/repos/flyway/flyway/issues/1430/comments","events_url":"https://api.github.com/repos/flyway/flyway/issues/1430/events","html_url":"https://github.com/flyway/flyway/issues/1430","id":176593159,"number":1430,"title":"Having only Repeatable Migrations crashes Flyway","user":{"login":"cristalp","id":12525759,"avatar_url":"https://avatars.githubusercontent.com/u/12525759?v=3","gravatar_id":"","url":"https://api.github.com/users/cristalp","html_url":"https://github.com/cristalp","followers_url":"https://api.github.com/users/cristalp/followers","following_url":"https://api.github.com/users/cristalp/following{/other_user}","gists_url":"https://api.github.com/users/cristalp/gists{/gist_id}","starred_url":"https://api.github.com/users/cristalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristalp/subscriptions","organizations_url":"https://api.github.com/users/cristalp/orgs","repos_url":"https://api.github.com/users/cristalp/repos","events_url":"https://api.github.com/users/cristalp/events{/privacy}","received_events_url":"https://api.github.com/users/cristalp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flyway/flyway/labels/m:%20Core","name":"m: Core","color":"fad8c7"},{"url":"https://api.github.com/repos/flyway/flyway/labels/s:%20waiting%20for%20feedback","name":"s: waiting for feedback","color":"FF8C00"},{"url":"https://api.github.com/repos/flyway/flyway/labels/t:%20bug","name":"t: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T09:32:01Z","updated_at":"2016-09-14T13:13:58Z","closed_at":null,"body":"###### What version of Flyway are you using?\r\n4.0.3\r\n\r\n\r\n###### Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)\r\nCommand-line\r\n\r\n\r\n###### What database are you using (type & version)?\r\nOracle, SQL Server\r\n\r\n\r\n###### What operating system are you using?\r\nRed Hat Linux\r\n\r\n\r\n###### What did you do?\r\nWe'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  ;-)\r\n`ERROR: java.lang.ArrayIndexOutOfBoundsException: -1`\r\n\r\n###### What did you expect to see?\r\nI would have liked the Repeatable Migration to be executed.\r\n\r\n\r\n###### What did you see instead?\r\nThe error above"},"comment":{"url":"https://api.github.com/repos/flyway/flyway/issues/comments/247008401","html_url":"https://github.com/flyway/flyway/issues/1430#issuecomment-247008401","issue_url":"https://api.github.com/repos/flyway/flyway/issues/1430","id":247008401,"user":{"login":"cristalp","id":12525759,"avatar_url":"https://avatars.githubusercontent.com/u/12525759?v=3","gravatar_id":"","url":"https://api.github.com/users/cristalp","html_url":"https://github.com/cristalp","followers_url":"https://api.github.com/users/cristalp/followers","following_url":"https://api.github.com/users/cristalp/following{/other_user}","gists_url":"https://api.github.com/users/cristalp/gists{/gist_id}","starred_url":"https://api.github.com/users/cristalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristalp/subscriptions","organizations_url":"https://api.github.com/users/cristalp/orgs","repos_url":"https://api.github.com/users/cristalp/repos","events_url":"https://api.github.com/users/cristalp/events{/privacy}","received_events_url":"https://api.github.com/users/cristalp/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T13:13:58Z","updated_at":"2016-09-14T13:13:58Z","body":"Sure:\r\n\r\n`\r\nSuccessfully validated 25 migrations (execution time 00:00.076s)\r\nSQLServer does not support setting the schema for the current session. Default schema NOT changed to dbo\r\nDEBUG: Schema [dbo] already exists. Skipping schema creation.\r\nDEBUG: Locking table [dbo].[schema_version]...\r\nDEBUG: Lock acquired for table [dbo].[schema_version]\r\nCurrent version of schema [dbo]: 2.1.0.35\r\nWARNING: outOfOrder mode is active. Migration of schema [dbo] may not be reproducible.\r\nERROR: Unexpected error\r\njava.lang.ArrayIndexOutOfBoundsException: -1\r\n        at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:201)\r\n        at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:173)\r\n        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)\r\n        at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:173)\r\n        at org.flywaydb.core.Flyway$1.execute(Flyway.java:959)\r\n        at org.flywaydb.core.Flyway$1.execute(Flyway.java:917)\r\n        at org.flywaydb.core.Flyway.execute(Flyway.java:1373)\r\n        at org.flywaydb.core.Flyway.migrate(Flyway.java:917)\r\n        at org.flywaydb.commandline.Main.executeOperation(Main.java:139)\r\n        at org.flywaydb.commandline.Main.main(Main.java:102)\r\n`"}}
{"actor":{"display_login":"cristalp"}}