Unverified Commit ae9085f3 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Migration execute unique commands

parent 1cb5d476
......@@ -90,6 +90,7 @@ class MigrationCommand extends GoGoAbstractCommand
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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment