makozaki
makozaki

Reputation: 4366

Flyway - migration file name length limit?

I noticed that when I created migration file with very long description in file name then it is omitted by flyway. There are no logs regarding the file, I'd expect at least some error on console.

I'm going through docs but I cannot find any mention regarding migration file name size.

I'm working on windows so maybe there are some system limitations.

If there is indeed such a limit then please reference me to proper sources.

Upvotes: 0

Views: 925

Answers (1)

Julia Hayward
Julia Hayward

Reputation: 2155

The most likely restriction you're running up against is the description (the part of the filename missing the V1__ version and .sql suffix) goes into a fixed size field in the history table. That insert may fail if the file name is too long. What file name do you not see?

If you run with full debug -X do you see any errors?

Upvotes: 1

Related Questions