|
|
@ -225,7 +225,7 @@ SQL; |
|
|
|
} |
|
|
|
} |
|
|
|
$citem = [$foreignTable]; |
|
|
|
$citem = [$foreignTable]; |
|
|
|
foreach ($columns as $idx => $column) { |
|
|
|
foreach ($columns as $idx => $column) { |
|
|
|
$citem[$fcolumns[$idx]] = $column; |
|
|
|
$citem[$column] = $fcolumns[$idx]; |
|
|
|
} |
|
|
|
} |
|
|
|
$table->foreignKeys[] = $citem; |
|
|
|
$table->foreignKeys[] = $citem; |
|
|
|
} |
|
|
|
} |
|
|
|