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
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Run a Migration with placeholderReplacement=false:
flyway.placeholderReplacement=false
A migration script contains a PLV8 function with a comment containing the following sequence:
indianscout@indianscout45:~/infektweb/guidelines.v4$ grep -A 10 -B10 "\${ user" dbdata/sql/V00_00113__CreateContentMigrationFunctionsDetails.sql
...
* var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
* compiled({ 'users': ['fred', 'barney'] });
* // => '<li>fred</li><li>barney</li>'
*
* // Use the internal `print` function in "evaluate" delimiters.
* var compiled = _.template('<% print("hello " + user); %>!');
* compiled({ 'user': 'barney' });
* // => 'hello barney!'
*
* // Use the ES delimiter as an alternative to the default "interpolate" delimiter.
* var compiled = _.template('hello ${ user }!');
* compiled({ 'user': 'pebbles' });
* // => 'hello pebbles!'
*
* // Use custom template delimiters.
* _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
* var compiled = _.template('hello {{ user }}!');
* compiled({ 'user': 'mustache' });
* // => 'hello mustache!'
*
* // Use backslashes to treat delimiters as plain text.
...
The line:
* var compiled = _.template('hello ${ user }!');
is causing the following error although placeholderReplacement is set to false:
...
Migrating schema "public" to version 00.00113 - CreateContentMigrationFunctionsDetails
ERROR: Migration of schema "public" to version 00.00113 - CreateContentMigrationFunctionsDetails failed! Changes successfully rolled back.
ERROR: No value provided for placeholder expressions: ${ user }. Check your configuration!
What did you expect to see?
When setting explicitly setting placeholderReplacement to false there should no be any error like this.
What did you see instead?
...
Migrating schema "public" to version 00.00113 - CreateContentMigrationFunctionsDetails
ERROR: Migration of schema "public" to version 00.00113 - CreateContentMigrationFunctionsDetails failed! Changes successfully rolled back.
ERROR: No value provided for placeholder expressions: ${ user }. Check your configuration!
The text was updated successfully, but these errors were encountered:
What version of Flyway are you using?
https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.0/flyway-commandline-4.0-linux-x64.tar.gz
What database are you using (type & version)?
Postgres 9.5
What operating system are you using?
Ubuntu Linux 15.10
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Run a Migration with placeholderReplacement=false:
A migration script contains a PLV8 function with a comment containing the following sequence:
The line:
is causing the following error although placeholderReplacement is set to false:
What did you expect to see?
When setting explicitly setting placeholderReplacement to false there should no be any error like this.
What did you see instead?
The text was updated successfully, but these errors were encountered: