Skip primary index if the table has one
This commit is contained in:
parent
4e9764b122
commit
bdfc9b57bd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue