Skip to content
New issue

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

Placeholder issue #16

Open
robiXxu opened this issue Jun 17, 2020 · 0 comments
Open

Placeholder issue #16

robiXxu opened this issue Jun 17, 2020 · 0 comments

Comments

@robiXxu
Copy link

robiXxu commented Jun 17, 2020

According to the documentation the way to add a placeholder is :

     placeholders:{
       name: 'test',
     },

However, when running the task i get:

java -cp /home/robixxu/root/<project>/node_modules/grunt-flyway/flyway-3.2.1/lib/flyway-commandline-3.2.1.jar:/home/robixxu/root/<project>/node_modules/grunt-flyway/flyway-3.2.1/lib/flyway-core-3.2.1.jar org.flywaydb.commandline.Main migrate -url="jdbc:postgresql://localhost:5432/somedb" -driver="org.postgresql.Driver" -user="someuser" -password="somepassword" -locations="filesystem:db/migration" -placeholders.0="undefined"

It seems like placeholders should be an array.
I tried using ${0}in the migration file and pass:

placeholders:{
  'test'
},

It seems to work, but is not a good solution if you have many placeholders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant