node-pg-migrate
Advanced tools
Comparing version 2.16.0 to 2.16.1
# Change Log | ||
## [2.16.1] (2018-01-25) | ||
### Changed | ||
- Updated dependencies [#158](https://github.com/salsita/node-pg-migrate/pull/158) | ||
### Fixed | ||
- Typescript definition fixes [#162](https://github.com/salsita/node-pg-migrate/pull/162) | ||
## [2.16.0] (2018-01-23) | ||
@@ -4,0 +14,0 @@ |
@@ -50,3 +50,5 @@ 'use strict'; | ||
}; | ||
_create.reverse = drop; | ||
_create.reverse = function (domain_name, type, options) { | ||
return drop(domain_name, options); | ||
}; | ||
return _create; | ||
@@ -53,0 +55,0 @@ }; |
@@ -175,6 +175,6 @@ // Type definitions for node-pg-migrate 2.3 | ||
export interface FunctionParamType { | ||
mode: 'IN' | 'OUT' | 'INOUT' | 'VARIADIC' | ||
name: string | ||
mode?: 'IN' | 'OUT' | 'INOUT' | 'VARIADIC' | ||
name?: string | ||
type: string | ||
default: Value | ||
default?: Value | ||
} | ||
@@ -195,10 +195,10 @@ | ||
interface TriggerOptionsEn { | ||
when: 'BEFORE' | 'AFTER' | 'INSTEAD OF' | ||
when?: 'BEFORE' | 'AFTER' | 'INSTEAD OF' | ||
operation: string | string[] | ||
constraint: boolean | ||
function: Name | ||
level: 'STATEMENT' | 'ROW' | ||
condition: string | ||
deferrable: boolean | ||
deferred: boolean | ||
constraint?: boolean | ||
function?: Name | ||
level?: 'STATEMENT' | 'ROW' | ||
condition?: string | ||
deferrable?: boolean | ||
deferred?: boolean | ||
} | ||
@@ -228,3 +228,3 @@ | ||
interface SequenceOptions { | ||
type?: string | ||
type?: Type | ||
increment?: number | ||
@@ -277,5 +277,5 @@ minvalue?: number | null | false | ||
export interface OperatorListDefinition { | ||
type?: string | ||
number?: number | ||
name?: Name | ||
type: 'function' | 'operator' | ||
number: number | ||
name: Name | ||
params?: FunctionParam[] | ||
@@ -349,3 +349,3 @@ } | ||
// Domains | ||
createDomain(domain_name: Name, domain_options: DomainOptionsCreate): void | ||
createDomain(domain_name: Name, type: Type, domain_options: DomainOptionsCreate): void | ||
dropDomain(domain_name: Name, drop_options: DropOptions): void | ||
@@ -364,3 +364,3 @@ alterDomain(domain_name: Name, domain_options: DomainOptionsAlter): void | ||
dropOperator(operator_name: Name, drop_options: DropOperatorOptions): void | ||
createOperatorClass(operator_class_name: Name, type: Name, index_method: Name, operator_list: OperatorListDefinition, options: CreateOperatorClassOptions): void | ||
createOperatorClass(operator_class_name: Name, type: Type, index_method: Name, operator_list: OperatorListDefinition, options: CreateOperatorClassOptions): void | ||
dropOperatorClass(operator_class_name: Name, index_method: Name, drop_options: DropOptions): void | ||
@@ -367,0 +367,0 @@ renameOperatorClass(old_operator_class_name: Name, index_method: Name, new_operator_class_name: Name): void |
@@ -33,3 +33,3 @@ { | ||
], | ||
"version": "2.16.0", | ||
"version": "2.16.1", | ||
"engines": { | ||
@@ -49,3 +49,3 @@ "node": ">=4.0.0" | ||
"mkdirp": "~0.5.1", | ||
"yargs": "~9.0.1" | ||
"yargs": "~11.0.0" | ||
}, | ||
@@ -64,5 +64,5 @@ "devDependencies": { | ||
"eslint": "^4.8.0", | ||
"eslint-config-airbnb-base": "12.0.2", | ||
"eslint-config-airbnb-base": "12.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"mocha": "^4.0.0", | ||
"mocha": "^5.0.0", | ||
"pg": "^7.3.0", | ||
@@ -69,0 +69,0 @@ "sinon": "^4.0.0", |
161574
2005
+ Addedcliui@4.1.0(transitive)
+ Addedyargs@11.0.0(transitive)
+ Addedyargs-parser@9.0.2(transitive)
- Removedcliui@3.2.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedload-json-file@2.0.0(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@2.0.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedread-pkg@2.0.0(transitive)
- Removedread-pkg-up@2.0.0(transitive)
- Removedresolve@1.22.10(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.21(transitive)
- Removedstrip-bom@3.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedyargs@9.0.1(transitive)
- Removedyargs-parser@7.0.0(transitive)
Updatedyargs@~11.0.0