Skip to content

Commit 56342ef

Browse files
committed
fix: probleme de suppressions d'indexes unique dans les migrations
1 parent 5717891 commit 56342ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Migration/Transformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public function modifyTable(Structure $structure, array $commands = []): void
147147
]);
148148
} elseif ($command->name === 'dropIndex') {
149149
$this->creator->dropKey($table, $command->columns);
150+
} elseif ($command->name === 'dropUnique') {
151+
$this->creator->dropKey($table, $command->index);
150152
} elseif ($command->name === 'dropForeign') {
151153
$this->creator->dropForeignKey($table, $command->index);
152154
} elseif ($command->name === 'dropPrimary') {

0 commit comments

Comments
 (0)