flyway-awslambda icon indicating copy to clipboard operation
flyway-awslambda copied to clipboard

NullPointerException with repeatable scripts

Open chewlett opened this issue 7 years ago • 0 comments

Flyway has the ability to deploy repeatable scripts (by default with the prefix "R__"), which are deployed when the contents of the file has changed.

https://flywaydb.org/getstarted/repeatable

When a repeatable script is deployed, the record inserted in the schema_version table is null. I'm guessing that the null pointer exception is being thrown when the code is trying to get the migration info from the schema_version table and the version is unexpectedly null.

Below is a screen shot from my CloudWatch logs, the exception is being thrown after the deployment has proceeded successfully.

image

chewlett avatar Jan 02 '19 23:01 chewlett