Skip to content

Commit

Permalink
fix Non_unique flag in primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
howyi committed Aug 24, 2018
1 parent 1f4d66d commit a41a5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Conv/Factory/TableStructureFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public static function fromTable(\PDO $pdo, string $dbName, string $tableName):
foreach ($keyList as $keyName => $indexList) {
$indexStructureList[] = new IndexStructure(
$keyName,
'0' === $indexList[0]['Non_unique'],
'0' == $indexList[0]['Non_unique'],
array_column($indexList, 'Column_name')
);
}
Expand Down

0 comments on commit a41a5ea

Please sign in to comment.