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.
2 parents 4baa7bd + 36b9064 commit 0b373f6Copy full SHA for 0b373f6
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