@vbilopav/pgmigrations
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -284,5 +284,7 @@ const path = require("path"); | ||
} | ||
if (nameSet) { | ||
warning(`Migration file ${migrationDir}/${fileName} contains duplicate name ${name}. Skipping...`); | ||
return; | ||
if (!nameSet) { | ||
let count = 1; | ||
while(usedNames[name]) { | ||
name = name + ` (${count++})`; | ||
} | ||
} | ||
@@ -289,0 +291,0 @@ } |
{ | ||
"name": "@vbilopav/pgmigrations", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "PostgreSQL Migration Tool for Node.js and NPM", | ||
@@ -5,0 +5,0 @@ "author": "vb-consulting", |
66424
1216