If provided with multiple folders, eg. sql1/ and sql2/, eugene lint --sort-mode=auto and eugene trace --sort-mode=auto (the default) will version sort sql1, then sql2, and concatenate the results. Flyway does this differently and will version sort across both paths. Example:
For these, flyway would apply as V1 -> V2 -> V3 -> V4 and eugene would do V1 -> V4 -> V2 -> V3. This is simple to fix, it's just a misunderstanding of how flyway works that lead me to do it this way.
If provided with multiple folders, eg.
sql1/
andsql2/
,eugene lint --sort-mode=auto
andeugene trace --sort-mode=auto
(the default) will version sort sql1, then sql2, and concatenate the results. Flyway does this differently and will version sort across both paths. Example:For these, flyway would apply as
V1 -> V2 -> V3 -> V4
and eugene would doV1 -> V4 -> V2 -> V3
. This is simple to fix, it's just a misunderstanding of how flyway works that lead me to do it this way.