@nextcode/postgres-migrator
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -147,3 +147,5 @@ "use strict"; | ||
static readMigrationFromPath(path, fileName) { | ||
return Object.assign({ version: fileName.split(/[-_]/)[0] }, require(`${path}/${fileName}`)); | ||
const version = fileName.split(/[-_]/)[0]; | ||
const name = fileName.substr(fileName.length + 1); | ||
return Object.assign({ version, name }, require(`${path}/${fileName}`)); | ||
} | ||
@@ -150,0 +152,0 @@ static getMigrationsFromPath(path) { |
{ | ||
"name": "@nextcode/postgres-migrator", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Postgres migration package with zero dependencies", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100011
1554