There is a SQL script V1.0.0_01__Init_from_ddl.sql
in /src/main/resources/db/migration
which initializes my database.
-> Running Spring Boot 2.7.6, this migration script is completely executed without any error.
-> Running Spring Boot 3.0.0, it says: No migrations found. Are your locations set up correctly?
I have not changed any properties regarding flyway. My database connection (MariaDB 10.6) is fine.
I have tried to rename the file to V1__Init.sql
or V1_0_0__Init.sql
(any many more tries) without any success.
Any ideas, what is going wrong?
CodePudding user response:
It was a folder problem:
-> My current folder-structure (file-system) of Spring Boot 2.7.6 project:
../src/main/resources/db/migration/
-> My current folder-structure (file-system) of Spring Boot 3.0.0 project:
../src/main/resources/db.migration/
After setting the folder structure of the Spring Boot 3.0.0 project to the one of the Spring Boot 2.7.7 project, it works well, even with Spring Boot 3.0.0 :)
So, the problem, was not a spring boot migration problem, just a path problem.