Skip to content

NullPointerException with repeatable scripts #9

@chewlett

Description

@chewlett

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions