Commit 7303bae3 by Qiang Xue

Fixed foreign key generation bug for pgsql.

parent 2e01c06a
...@@ -200,7 +200,7 @@ SQL; ...@@ -200,7 +200,7 @@ SQL;
} }
$citem = array($foreignTable); $citem = array($foreignTable);
foreach ($columns as $idx => $column) { foreach ($columns as $idx => $column) {
$citem[] = array($fcolumns[$idx] => $column); $citem[$fcolumns[$idx]] = $column;
} }
$table->foreignKeys[] = $citem; $table->foreignKeys[] = $citem;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment