My problem is relatively simple as I try to make a migration with the help of the Flyway CLI.
The problem here is, that the system orders the migration files in the wrong order and my new file isn't viewed as the newest version. The files have the same version as the POM so we know in which version which changes came.
The current version is 1.4.11 but it's viewed as an older version.
V1_4_11.001
should be newer than V1_4_7.001
Why is that and how can I fix it without using the outOfOrder flag? The exact same files are in the right order on my MacBook.
-rw-r--r-- 1 501 staff 226 Oct 18 16:02 V1_1_0__patch.sql
-rw-r--r-- 1 501 staff 3174 Oct 18 16:02 V1_2_0__patch.sql
-rw-r--r-- 1 501 staff 1774 Oct 18 16:02 V1_2_2__patch.sql
-rw-r--r-- 1 501 staff 130 Oct 18 16:02 V1_4_0.001__merge_skill_level_godlike.sql
-rw-r--r-- 1 501 staff 111 Oct 18 16:02 V1_4_0.002__modify_publications.sql
-rw-r--r-- 1 501 staff 2149 Oct 18 16:02 V1_4_0.003__create_v_competence_by_experience.sql
-rw-r--r-- 1 501 staff 55 Oct 18 16:02 V1_4_11.001__add_profile_updated_on.sql // Newest version
-rw-r--r-- 1 501 staff 712 Oct 18 16:02 V1_4_7.001__add_duration.sql