Fix the discover keys
This commit is contained in:
parent
e207628538
commit
3d82fc10b9
|
@ -443,7 +443,7 @@ Schema.prototype.discoverModelProperties = function (options, cb) {
|
|||
Schema.prototype.discoverPrimaryKeys= function(owner, table, cb) {
|
||||
this.freeze();
|
||||
if (this.adapter.discoverPrimaryKeys) {
|
||||
this.adapter.discoverPrimaryKeys(options, cb);
|
||||
this.adapter.discoverPrimaryKeys(owner, table, cb);
|
||||
} else if (cb) {
|
||||
cb();
|
||||
}
|
||||
|
@ -470,7 +470,7 @@ Schema.prototype.discoverPrimaryKeys= function(owner, table, cb) {
|
|||
Schema.prototype.discoverForeignKeys= function(owner, table, cb) {
|
||||
this.freeze();
|
||||
if (this.adapter.discoverForeignKeys) {
|
||||
this.adapter.discoverForeignKeys(options, cb);
|
||||
this.adapter.discoverForeignKeys(owner, table, cb);
|
||||
} else if (cb) {
|
||||
cb();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue