Skip to content
Snippets Groups Projects
Unverified Commit ae9085f3 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Migration execute unique commands

parent 1cb5d476
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,7 @@ class MigrationCommand extends GoGoAbstractCommand
$asyncService->setRunSynchronously(true);
if (count($this->commands) > $migrationState->getCommandsIndex()) {
$commandsToRun = array_slice($this->commands, $migrationState->getCommandsIndex());
$commandsToRun = array_unique($commandsToRun);
$this->log(count($commandsToRun) . " commands to run");
foreach($dbs as $db) {
foreach($commandsToRun as $command) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment