Skip to content

Placeholder issue #16

@robiXxu

Description

@robiXxu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions