We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can specify environment variables for config, but if the environment variable is not set, you can't provide a default (fallback) value.
Should be able to provide { "ENV": "MY_ENV_VAR", "default": "some-value" } as a value, and when MY_ENV_VAR is not set, some-value should be used.
{ "ENV": "MY_ENV_VAR", "default": "some-value" }
MY_ENV_VAR
some-value
db-migrate version: 0.11.13 db-migrate driver with versions: mysql v2.2.0 Additional information: - Node version: v17.3.0 - Platform: Linux (Ubuntu 20.04.3)
The text was updated successfully, but these errors were encountered:
Implemented default values for undefined env vars (closes db-migrate#765
ecfe543
)
Implemented default values for undefined env vars
895dda0
closes db-migrate#765 Signed-off-by: Kael Shipman <[email protected]>
Feat: Implemented default values for undefined env vars
3cb7bdf
No branches or pull requests
I'm submitting a...
Current behavior
You can specify environment variables for config, but if the environment variable is not set, you can't provide a default (fallback) value.
Expected behavior
Should be able to provide
{ "ENV": "MY_ENV_VAR", "default": "some-value" }
as a value, and whenMY_ENV_VAR
is not set,some-value
should be used.Environment
The text was updated successfully, but these errors were encountered: