node-pg-migrate
Advanced tools
Comparing version 3.17.0 to 3.18.0
# Change Log | ||
## [3.18.0](2019-03-07) | ||
### Added | ||
- Returning list of run migrations [#411](https://github.com/salsita/node-pg-migrate/pull/411) | ||
## [3.17.0](2019-03-05) | ||
@@ -4,0 +10,0 @@ |
@@ -226,3 +226,3 @@ "use strict"; | ||
log("No migrations to run!"); | ||
return; | ||
return []; | ||
} // TODO: add some fancy colors to logging | ||
@@ -252,2 +252,8 @@ | ||
} | ||
return toRun.map(m => ({ | ||
path: m.path, | ||
name: m.name, | ||
timestamp: m.timestamp | ||
})); | ||
} finally { | ||
@@ -254,0 +260,0 @@ db.close(); |
@@ -200,3 +200,3 @@ const path = require("path"); | ||
log("No migrations to run!"); | ||
return; | ||
return []; | ||
} | ||
@@ -225,2 +225,8 @@ | ||
} | ||
return toRun.map(m => ({ | ||
path: m.path, | ||
name: m.name, | ||
timestamp: m.timestamp | ||
})); | ||
} finally { | ||
@@ -227,0 +233,0 @@ db.close(); |
{ | ||
"name": "node-pg-migrate", | ||
"version": "3.17.0", | ||
"version": "3.18.0", | ||
"description": "Postgresql database migration management tool for node.js", | ||
@@ -5,0 +5,0 @@ "author": "Theo Ephraim", |
276252
4810