Skip to content

Commit

Permalink
Fixed foreign key generation bug for pgsql.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Sep 10, 2013
1 parent 2e01c06 commit 7303bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/yii/db/pgsql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function findConstraints($table)
}
$citem = array($foreignTable);
foreach ($columns as $idx => $column) {
$citem[] = array($fcolumns[$idx] => $column);
$citem[$fcolumns[$idx]] = $column;
}
$table->foreignKeys[] = $citem;
}
Expand Down

0 comments on commit 7303bae

Please sign in to comment.