Flyway Migrate -CherryPick
DavidWNAZ
Posts: 20 Bronze 1
Today we tried to use CherryPick with Flyway CLI v9.15 (within Azure Devops) but received an error.
Any thoughts?
##[error]ERROR: Unknown configuration property: flyway.cherrypick
However, when we used the same option in Flyway Deskop (v6.3.11 engine v9.17), we don't get the error and the migration is successful. We tried several different variations of the CLI command by moving 'migrate' directly after the flyway command.
However, when we used the same option in Flyway Deskop (v6.3.11 engine v9.17), we don't get the error and the migration is successful. We tried several different variations of the CLI command by moving 'migrate' directly after the flyway command.
Any thoughts?
Tagged:
Best Answer
-
DanC Posts: 644 Gold 5Hi @DavidWNAZ
If the casing is correct, the issue here is you have "cherrypick" when it needs to be "cherryPick" as it's case sensitive for the parameters: https://documentation.red-gate.com/fd/cherry-pick-184127485.html
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Answers
Would you be able to provide me with the command you're using so I can see the syntax?
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
flyway -baselineOnMigrate=true -outOfOrder="true" -configFiles="C:\****\flyway.conf" -locations="filesystem:C:\****\migrations" -user="*****" -password="***" -url="jdbc:sqlserver://????????:????;databaseName=****;encrypt=true;integratedSecurity=true;trustServerCertificate=true" -licenseKey=***** migrate -cherrypick="6" info -baselineVersion=1 -cleanDisabled=true -check.reportFilename="C:\Drift-And-Change-Report.html"