Socket
Socket
Sign inDemoInstall

db-migrate

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

5

CHANGELOG.md

@@ -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)

2

lib/driver/pg.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc