We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4baa7bd commit 36b9064Copy full SHA for 36b9064
src/Tools/SchemaTool.php
@@ -319,7 +319,7 @@ public function getSchemaFromMetadata(array $classes): Schema
319
$primaryKey = $table->getIndex('primary');
320
321
foreach ($table->getIndexes() as $idxKey => $existingIndex) {
322
- if ($primaryKey->overrules($existingIndex)) {
+ if (! $existingIndex->isPrimary() && $primaryKey->spansColumns($existingIndex->getColumns())) {
323
$table->dropIndex($idxKey);
324
}
325
0 commit comments