Skip to content

Commit

Permalink
Merge pull request #12 from moufmouf/bugfix/quotedcolumns
Browse files Browse the repository at this point in the history
Fixing bug in quoted columns (on Oracle)
  • Loading branch information
moufmouf authored Aug 1, 2020
2 parents ec47fa6 + d0ba8ef commit bb3e99e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.4

env:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"require": {
"clue/graph": "~0.9.0",
"doctrine/dbal": "~2.4",
"doctrine/dbal": "~2.5",
"doctrine/cache": "^1.4.1",
"graphp/algorithms": "~0.8.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"satooshi/php-coveralls": "dev-master"
"phpunit/phpunit": "^4.8.36",
"satooshi/php-coveralls": "^1.0"
}
}
6 changes: 3 additions & 3 deletions src/SchemaAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function isJunctionTable(Table $table, $ignoreReferencedTables = false)
}

if ($table->hasPrimaryKey()) {
$pkColumns = $table->getPrimaryKeyColumns();
$pkColumns = $table->getPrimaryKey()->getUnquotedColumns();
} else {
$pkColumns = [];
}
Expand Down Expand Up @@ -513,8 +513,8 @@ private function isInheritanceRelationship(ForeignKeyConstraint $fk)
if (!$fk->getLocalTable()->hasPrimaryKey()) {
return false;
}
$fkColumnNames = $fk->getLocalColumns();
$pkColumnNames = $fk->getLocalTable()->getPrimaryKeyColumns();
$fkColumnNames = $fk->getUnquotedLocalColumns();
$pkColumnNames = $fk->getLocalTable()->getPrimaryKey()->getUnquotedColumns();

sort($fkColumnNames);
sort($pkColumnNames);
Expand Down

0 comments on commit bb3e99e

Please sign in to comment.