Flyway has many different parameters that can be set to configure its behavior. These parameters can be set through a variety of different means, depending on how you are using Flyway.
If using the command line, config parameters can be set via command line arguments (e.g. ./flyway -url=jdbc:h2:mem:flyway info
), configuration files, or environment variables (e.g. FLYWAY_URL=jdbc:h2:mem:flyway
).
If using the api, config parameters can be set via calling methods on the configuration object returned by Flyway.configure()
(e.g. Flyway.configure().url("jdbc:h2:mem:flyway").load()
), configuration files, or environment variables if the .envVars()
method is called on the configuration object.
If using maven, config parameters can be set on the configuration xml block in the maven config, configuration files, or environment variables (e.g. FLYWAY_URL=jdbc:h2:mem:flyway
).
If using maven, config parameters can be set in the plugin configuration block, configuration files, or environment variables (e.g. FLYWAY_URL=jdbc:h2:mem:flyway
).