Skip to content

Commit

Permalink
Fix a missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 16, 2024
1 parent 487d88e commit 1a7cd27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Db/Adapter/MysqlAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,8 @@ protected function getForeignKeys(string $tableName): array
if ($schema) {
$query .= ' AND TABLE_SCHEMA = ?';
$params[] = $schema;
} else {
$query .= ' AND TABLE_SCHEMA = DATABASE()';
}

$query .= ' AND TABLE_NAME = ? ORDER BY POSITION_IN_UNIQUE_CONSTRAINT';
Expand Down

0 comments on commit 1a7cd27

Please sign in to comment.