Skip to content

Commit 6946569

Browse files
author
loay
committed
Add options.schema
1 parent c80fefe commit 6946569

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/discovery.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function mixinDiscovery(PostgreSQL) {
103103
}
104104
return {
105105
owner: options.owner || options.schema,
106+
schema: options.owner || options.schema,
106107
table: table,
107108
options: options,
108109
cb: cb,
@@ -331,10 +332,6 @@ function mixinDiscovery(PostgreSQL) {
331332
};
332333

333334
PostgreSQL.prototype.getDefaultSchema = function() {
334-
if (this.dataSource && this.dataSource.settings &&
335-
this.dataSource.settings.database) {
336-
return this.dataSource.settings.database;
337-
}
338-
return undefined;
335+
return '';
339336
};
340337
}

0 commit comments

Comments
 (0)