I have similar issue like this ,here am sharing the solution worked for me
In my case , while starting my springboot application on intellij it doesn't take the flywayconfiguration folder located in the configuration folder until giving the absolute path.but it work correctly on my teammate's pc also this will work when i run this outside the ide. to fix this
To fix:
1.Remove the existing project from IntelliJ and reload again fresh checkout
2.Clean & Refresh IntelliJ Project
3.Click File → Invalidate Caches / Restart → Invalidate and Restart
Then Build → Rebuild Project
4.Correct the Working directory
Go to Run → Edit Configurations.
Select your run configuration.
Look at the Working directory field.
configuration/).Apply → OK → Re-run.