From 7303bae38212ed2e1c8a4080e2f465172795431b Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 10 Sep 2013 08:24:14 -0400 Subject: [PATCH] Fixed foreign key generation bug for pgsql. --- framework/yii/db/pgsql/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/pgsql/Schema.php b/framework/yii/db/pgsql/Schema.php index 9693dd6..969b47a 100644 --- a/framework/yii/db/pgsql/Schema.php +++ b/framework/yii/db/pgsql/Schema.php @@ -200,7 +200,7 @@ SQL; } $citem = array($foreignTable); foreach ($columns as $idx => $column) { - $citem[] = array($fcolumns[$idx] => $column); + $citem[$fcolumns[$idx]] = $column; } $table->foreignKeys[] = $citem; }