How does flyway decide order of execution for sql scripts
<p>How does flyway decide order of execution for sql scripts.</p>

<p>I have attached a screenshot of scripts I have in my project in various directories; but it executed it in different order than I expected. Also, the execution order varies if I ran the scripts in incremental manner or all at the same time.</p>

<p>Here's the order I expected them to execute in.</p>

<p><a href="https://i.stack.imgur.com/4l6KP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4l6KP.png" alt="enter image description here"></a></p>

<p>Here's the order they got executed in.</p>

<p><a href="https://i.stack.imgur.com/oRMxO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oRMxO.png" alt="enter image description here"></a></p>

<p>I am using flyway-core 4.0.3 with sprint boot. I have set flyway.out-of-order=true.</p>