@vbilopav/pgmigrations
Advanced tools
Comparing version 0.15.0 to 0.16.0
{ | ||
"name": "@vbilopav/pgmigrations", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "PostgreSQL Migration Tool for Node.js and NPM", | ||
@@ -5,0 +5,0 @@ "author": "vb-consulting", |
@@ -12,6 +12,7 @@ #!/usr/bin/env node | ||
var defaultconfigFile = "./db.js"; | ||
var defaultconfigFile2 = "./pgmigrations.js"; | ||
var args = process.argv.slice(2); | ||
var cmd = args[0]; | ||
var userConfigs = [defaultconfigFile]; | ||
var userConfigs = [defaultconfigFile, defaultconfigFile2]; | ||
@@ -37,3 +38,3 @@ const envRegex = /\$\{([^}]+)\}/g; | ||
} else if (userConfigs[i] !== defaultconfigFile) { | ||
} else if (userConfigs[i] !== defaultconfigFile && userConfigs[i] !== defaultconfigFile2) { | ||
warning("Config file not found: " + configFile + ". Please provide a valid config file."); | ||
@@ -103,3 +104,3 @@ } | ||
sections([ | ||
{key: '', value: './db.js from the current dir is the default configuration file. It will be ignored if not found.'}, | ||
{key: '', value: './db.js or ./pgmigrations.js from the current dir is the default configuration file. It will be ignored if not found.'}, | ||
{key: '--config=[file]', value: 'Set the custom config file or multiple files (multiple --config switches). Config files are merged in the order they are provided.'} | ||
@@ -106,0 +107,0 @@ ], 16); |
76236
1362