You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version and edition of Flyway are you using?
In Teams v10.8.1
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-Line
Which database are you using? (Type & version)
Postgres 15
Which operating system are you using?
Windows 10
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Thank you for your issue @vzdm
This would be caused by changes to our configuration structure over the last year. Unfortunately dot separated placeholders were not a consideration in the redesign as we had not had a use case using them previously. Currently, placeholders.this.causes.a.parse.error would be considered multiple levels of depth in the new configuration model and not simple as a key and value in the placeholders map. We would need to investigate if this is something we could support.
I have a schema history that already contains dot separated placeholders. I chose placeholder labels based on the way placeholders are passed in command line - with a . separation, like this
There was no limitation/best practice for placeholder label charset in the previous versions. I do not think that my choice of label notation would be in any way obviously misconceptional, taking into consideration that flyway already used . within the command line argument syntax.
Now with this update, I am unable to migrate to any newer version of flyway, because i either lose the ability to start a new instance of the DB from scratch (if i keep the old scripts as they are - because they contain dot-separated placeholder labels which i have no way of interpolating in the old scripts) or I lose the ability to maintain the existing (prod) databases using flyway (if i change the placeholder label notation in my existing scripts to be conform with the newest restriction, it will mess up flyway history hashes). This is a serious deal-breaker.
Which version and edition of Flyway are you using?
In Teams v10.8.1
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-Line
Which database are you using? (Type & version)
Postgres 15
Which operating system are you using?
Windows 10
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
flyway -url="jdbc:postgresql://<server>:<port>/database" -user=<user> -password=<password> -mixed=true -defaultSchema=<schema> -ignoreMigrationPatterns="repeatable:missing" "-placeholders.holder_key1=<value>" "-placeholders.holder-key2=<value>" "-placeholders.this.causes.a.parse.error=<value>" -locations="filesystem:<.../sql/>" migrate
What did you expect to see?
No error. This syntax was supported in v9.20.0 which is the most recent version we used before attempting to upgrade.
What did you see instead?
ERROR: Unable to parse command line params.
The text was updated successfully, but these errors were encountered: