Ravish Bhagdev
Ravish Bhagdev

Reputation: 955

Using FLYWAY_PLACEHOLDERS_NAME environment variable to set placeholder key/value pairs

Documentation states that I can also use environment variables for Flyway configuration, instead of specifying them in Gradle files.

However, since placeholder are multivalued, how are these handled via environment variables? Are they comma separated key value pairs?

"key1=val1,key2=val2"? 

I cannot seem to find any such examples.

Upvotes: 1

Views: 511

Answers (1)

Axel Fontaine
Axel Fontaine

Reputation: 35167

NAME refers to the placeholder name.

To set the environment variable for placeholder key1 use

FLYWAY_PLACEHOLDERS_KEY1=val1

Upvotes: 1

Related Questions