Skip to content
Snippets Groups Projects
Commit bdfc9b57 authored by Victor Dubiniuk's avatar Victor Dubiniuk Committed by Thomas Müller
Browse files

Skip primary index if the table has one

parent 4e9764b1
Branches
No related tags found
No related merge requests found
......@@ -293,6 +293,9 @@ class MDB2SchemaReader {
}
if (!empty($fields)) {
if (isset($primary) && $primary) {
if ($table->hasPrimaryKey()) {
return;
}
$table->setPrimaryKey($fields, $name);
} else {
if (isset($unique) && $unique) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment