|
|
@ -32,7 +32,8 @@ class VersionAuthserverExternalAccount20171020220239 extends AbstractMigration |
|
|
|
$duplicateIds = array_map(function ($row) { |
|
|
|
$duplicateIds = array_map(function ($row) { |
|
|
|
return $row['id']; |
|
|
|
return $row['id']; |
|
|
|
}, $duplicates); |
|
|
|
}, $duplicates); |
|
|
|
$this->connection->executeUpdate('DELETE FROM vierbergenlars_external_account_external_user WHERE id IN(' . implode(',', $duplicateIds) . ')'); |
|
|
|
if (count($duplicateIds) > 0) |
|
|
|
|
|
|
|
$this->connection->executeUpdate('DELETE FROM vierbergenlars_external_account_external_user WHERE id IN(' . implode(',', $duplicateIds) . ')'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function down(Schema $schema) |
|
|
|
public function down(Schema $schema) |
|
|
|