Skip to content

Commit

Permalink
bug/EnvironmentNotSetInRollback while doing rollback migration enviro…
Browse files Browse the repository at this point in the history
…nment property was not set
  • Loading branch information
Artur Dzida committed Jun 15, 2017
1 parent 8841c46 commit 0102ca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ protected function executeMigration($targetRevision, $environment, $direction)
$className = $revision->getName();

$migration = new $className($this->getClient($environment));
$migration->setEnvironment($environment);
$migration->down();

$this->logDown($revision->getId(), $environment);
Expand Down

0 comments on commit 0102ca5

Please sign in to comment.