@vbilopav/pgmigrations
Advanced tools
Comparing version 0.2.1 to 0.2.2
const crypto = require('crypto'); | ||
const migration = require('./migration'); | ||
@@ -33,2 +34,3 @@ module.exports = { | ||
separatorPrefix: "__", | ||
migrationExtensions: [".sql"], | ||
@@ -35,0 +37,0 @@ tmpDir: "./tmp", |
@@ -229,4 +229,10 @@ const path = require("path"); | ||
if (!fileName.toLocaleLowerCase().endsWith('.sql')) { | ||
return; | ||
for (let j = 0; j < config.migrationExtensions.length; j++) { | ||
const ext = config.migrationExtensions[j].toLowerCase(); | ||
if (!fileName.toLowerCase().endsWith(ext)) { | ||
if (opt.verbose) { | ||
warning(`Skipping file ${fileName} with invalid extension. Valid extensions are ${config.migrationExtensions.join(", ")}.`); | ||
} | ||
return; | ||
} | ||
} | ||
@@ -233,0 +239,0 @@ |
{ | ||
"name": "@vbilopav/pgmigrations", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "PostgreSQL Migration Tool for Node.js and NPM", | ||
@@ -5,0 +5,0 @@ "author": "vb-consulting", |
64101
1162