If we have migrations like:
V1_6__six.sql
V1_7__seven.sql
V1_8__eight.sql
V1_9__nine.sql
What should we use for the next version?
If we use V1_10
will that come after V1__9
? Or would we need to prefix the single digit version numbers with a 0
?
Really the question is: are version numbers sorted numerically or alphabetically?
For a definitive answer on how the sorting happens, you can refer to the code. This test is especially helpful.
In one word: numerically. As would be expected for a number.