How can we help you today? How can we help you today?
javaDuke
Peter_Laws said: As the interface says, these parameters are temporary and will not persist. Whereas, if you were to define them in the config file or environment variables (as mentioned in link of your first comment) they will then persist. Additionally, if you add them in either environment variables, or the root flyway install directory as opposed to the project directory, the placeholders will be available for all instances of flyway. It worked when I tried. Thank you! Just a note to other devs, there are two "toml" format config files: - flyway.toml - flyway.user.toml I tried setting up my placeholders in either of them and it worked. NOTE: When you setup in flyway.user.toml you should specify full placehalder key name otherwise it will not be found. Example: Consider placeholder key "myKey", then in flyway.user.toml you should specify: flyway.placeholders.myKey = "myValue" In flyway.toml there are sections and you can spectify in "Global" flyway section, e.g. [flyway] mixed = true outOfOrder = true locations = [ "filesystem:migrations" ] validateMigrationNaming = true placeholders.myKey = "myValue" Notice, that "flyway" prefix was omitted, since its part of the [flyway] section that adds this namespace. For environment specific section you have to specify full placeholder name, for example H2Mem: [environments.H2Mem] url = "jdbc:h2:mem:testdb" user = "sa" flyway.placeholders.myKey = "myValue" <-- notice prefix "flyway." / comments
Peter_Laws said: As the interface says, these parameters are temporary and will not persist.Whereas, if you were to define them in the config file or environment variables (as mentioned in li...
0 votes
Actually it does support placeholders in the community edition. The only issue I see is that the desktop tool doesn't save user configured placeholders into the project json. Perhaps its a bug or missing feature. / comments
Actually it does support placeholders in the community edition. The only issue I see is that the desktop tool doesn't save user configured placeholders into the project json. Perhaps its a bug or m...
0 votes