db-migrate
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -84,1 +84,6 @@ ## 0.1.0 | ||
@aprobus) | ||
## 0.2.7 | ||
Fix: | ||
- Support process.env.DATABASE_URL for postgres, for use with Heroku #57 (via @garth) |
@@ -195,4 +195,4 @@ var util = require('util'); | ||
exports.connect = function(config, callback) { | ||
var db = config.db || new pg.Client(config); | ||
var db = config.db || new pg.Client(process.env.DATABASE_URL || config); | ||
callback(null, new PgDriver(db)); | ||
}; |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=0.6.0" |
@@ -189,3 +189,3 @@ # db-migrate | ||
}, | ||
"pg": { | ||
@@ -207,2 +207,6 @@ "driver": "pg", | ||
Alternatively, for PostgreSQL, you can specify a DATABASE_URL | ||
environment variable that will be used in place of the configuration | ||
file settings. This is helpful for use with Heroku. | ||
## Defaults | ||
@@ -209,0 +213,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99837
404
7