Commit bf708aa8 by Qiang Xue

Fixes #1334: foreign key is incorrectly determined for pgsql.

parent 1fe7f5aa
......@@ -225,7 +225,7 @@ SQL;
}
$citem = [$foreignTable];
foreach ($columns as $idx => $column) {
$citem[$fcolumns[$idx]] = $column;
$citem[$column] = $fcolumns[$idx];
}
$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