From 3d82fc10b9cdba3f8a7b7724ebc94428b0201cff Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 13 May 2013 22:10:10 -0700 Subject: [PATCH] Fix the discover keys --- lib/schema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/schema.js b/lib/schema.js index dd6a1f6b..b719dc57 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -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(); }