node-pg-migrate
Advanced tools
Comparing version 2.22.2 to 2.23.0
# Change Log | ||
## [2.23.0] (2018-02-20) | ||
### Changed | ||
- Updating deps, removing vulnerablity status for peer and optional dependencies [#199](https://github.com/salsita/node-pg-migrate/pull/199) | ||
- Removing regex [#198](https://github.com/salsita/node-pg-migrate/pull/198) | ||
- Adding ability to specify database name with 'database' option [#197](https://github.com/salsita/node-pg-migrate/pull/197) | ||
## [2.22.2] (2018-02-20) | ||
@@ -4,0 +12,0 @@ |
@@ -22,5 +22,7 @@ 'use strict'; | ||
function generateColumnString(column) { | ||
return (/.+\(.*\)/.test(column) ? column // expression | ||
: _utils.template`"${column}"` | ||
); // single column | ||
var openingBracketPos = column.indexOf('('); | ||
var closingBracketPos = column.indexOf(')'); | ||
var isFunction = openingBracketPos >= 0 && closingBracketPos > openingBracketPos; | ||
return isFunction ? column // expression | ||
: _utils.template`"${column}"`; // single column | ||
} | ||
@@ -27,0 +29,0 @@ |
@@ -33,3 +33,3 @@ { | ||
], | ||
"version": "2.22.2", | ||
"version": "2.23.0", | ||
"engines": { | ||
@@ -36,0 +36,0 @@ "node": ">=4.0.0" |
@@ -5,4 +5,2 @@ # node-pg-migrate | ||
[![devDependency Status](https://img.shields.io/david/dev/salsita/node-pg-migrate.svg)](https://david-dm.org/salsita/node-pg-migrate?type=dev) | ||
[![peerDependencies Status](https://img.shields.io/david/peer/salsita/node-pg-migrate.svg)](https://david-dm.org/salsita/node-pg-migrate?type=peer) | ||
[![optionalDependencies Status](https://img.shields.io/david/optional/salsita/node-pg-migrate.svg)](https://david-dm.org/salsita/node-pg-migrate?type=optional) | ||
[![NPM version](https://img.shields.io/npm/v/node-pg-migrate.svg)](https://www.npmjs.com/package/node-pg-migrate) | ||
@@ -29,3 +27,3 @@ ![Downloads](https://img.shields.io/npm/dm/node-pg-migrate.svg?style=flat) | ||
{ | ||
"db": "postgres://postgres:password@localhost:5432/name" | ||
"db": "postgres://postgres:password@localhost:5432/database" | ||
} | ||
@@ -44,3 +42,3 @@ ``` | ||
"port": 5432, | ||
"name": "name" | ||
"database": "database" | ||
} | ||
@@ -53,3 +51,3 @@ } | ||
``` | ||
DATABASE_URL=postgres://postgres@localhost/name node-pg-migrate | ||
DATABASE_URL=postgres://postgres@localhost/database node-pg-migrate | ||
``` | ||
@@ -66,3 +64,3 @@ | ||
"port": 5432, | ||
"name": "name" | ||
"database": "database" | ||
} | ||
@@ -121,3 +119,3 @@ ``` | ||
* either `url` or [`user`], [`password`], `host` (defaults to localhost), `port` (defaults to 5432), `name` - for connection details | ||
* either `url` or [`user`], [`password`], `host` (defaults to localhost), `port` (defaults to 5432), `database` - for connection details | ||
@@ -124,0 +122,0 @@ * `type-shorthands` - for column type shorthands |
Sorry, the diff of this file is not supported yet
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
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
170612
2073
1097