Fixing issue with reverse engineering databases.
This commit is contained in:
parent
464accecfe
commit
5a92c0b51e
1 changed files with 0 additions and 7 deletions
|
@ -78,13 +78,6 @@ class DatabaseDriver implements Driver
|
||||||
$ids = array();
|
$ids = array();
|
||||||
$fieldMappings = array();
|
$fieldMappings = array();
|
||||||
foreach ($columns as $column) {
|
foreach ($columns as $column) {
|
||||||
// Skip columns that are foreign keys
|
|
||||||
foreach ($foreignKeys as $foreignKey) {
|
|
||||||
if (in_array(strtolower($column->getName()), array_map('strtolower', $foreignKey->getColumns()))) {
|
|
||||||
continue(2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$fieldMapping = array();
|
$fieldMapping = array();
|
||||||
if (isset($indexes['primary']) && in_array($column->getName(), $indexes['primary']->getColumns())) {
|
if (isset($indexes['primary']) && in_array($column->getName(), $indexes['primary']->getColumns())) {
|
||||||
$fieldMapping['id'] = true;
|
$fieldMapping['id'] = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue