We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0061d commit b1381e5Copy full SHA for b1381e5
lib/migration.js
@@ -122,7 +122,7 @@ Migration.prototype.sqlFileLoaderTemplate = function() {
122
'};',
123
'',
124
'exports.up = function(db) {',
125
- ' var filePath = path.join(__dirname, \'sqls', this.name.replace(
+ ' var filePath = path.join(__dirname, \'sqls\', \'' + this.name.replace(
126
'.js', '') + '-up.sql\');',
127
' return new Promise( function( resolve, reject ) {',
128
' fs.readFile(filePath, {encoding: \'utf-8\'}, function(err,data){',
@@ -138,7 +138,7 @@ Migration.prototype.sqlFileLoaderTemplate = function() {
138
139
140
'exports.down = function(db) {',
141
142
'.js', '') + '-down.sql\');',
143
144
0 commit comments