Is it possible to override url that is given in .conf file when invoking migrate from command line?
flyway -flyway.url=jdbc:jtds:sqlserver://test_sqlserver:1433/mydatabase migrate
This above does not seem to work.
Is it possible to override url that is given in .conf file when invoking migrate from command line?
flyway -flyway.url=jdbc:jtds:sqlserver://test_sqlserver:1433/mydatabase migrate
This above does not seem to work.
To expand on that comment:
-D
sets a system property (in this case flyway.baselineVersion
), it's a parameter to java, not to flyway.
-baselineVersion=1
is a parameter to flyway
Both happen to work only because flyway uses both command line arguments and system properties (in addition to the configuration file), they are not otherwise related.
Yes. Command-line options are not prefixed with
flyway.
In your case this would mean
flyway -url=jdbc:jtds:sqlserver://test_sqlserver:1433/mydatabase migrate