I am using the latest version flyway/flyway:10.11.0, but when I try to run migration scripts for mongodb (running locally using Docker) I get the following error:
org.flywaydb.core.api.FlywayException: No database found to handle jdbc:mongodb://localhost:27017
at org.flywaydb.core.internal.database.DatabaseTypeRegister.getDatabaseTypeForUrl(DatabaseTypeRegister.java:55) at org.flywaydb.core.internal.jdbc.DriverDataSource.<init>(DriverDataSource.java:109)
at org.flywaydb.core.internal.jdbc.DriverDataSource.<init>(DriverDataSource.java:89)
at org.flywaydb.core.api.configuration.ClassicConfiguration.getDataSource(ClassicConfiguration.java:118)
at org.flywaydb.core.api.configuration.ClassicConfiguration.configure(ClassicConfiguration.java:1696)
at org.flywaydb.core.api.configuration.FluentConfiguration.configuration(FluentConfiguration.java:896)
at org.flywaydb.commandline.configuration.LegacyConfigurationManager.getConfiguration(LegacyConfigurationManager.java:79)
at org.flywaydb.commandline.configuration.ConfigurationManagerImpl.getConfiguration(ConfigurationManagerImpl.java:39)
at org.flywaydb.commandline.Main.main(Main.java:103)
I have tried changing the URL to the name of the docker container and also attaching to the same container network.
Using the CLI of the same version the migration runs without any issues.
I am using the latest version
flyway/flyway:10.11.0
, but when I try to run migration scripts for mongodb (running locally using Docker) I get the following error:I have tried changing the URL to the name of the docker container and also attaching to the same container network.
Using the CLI of the same version the migration runs without any issues.