Skip to content

Commit 0102ca5

Browse files
author
Artur Dzida
committed
bug/EnvironmentNotSetInRollback while doing rollback migration environment property was not set
1 parent 8841c46 commit 0102ca5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ protected function executeMigration($targetRevision, $environment, $direction)
246246
$className = $revision->getName();
247247

248248
$migration = new $className($this->getClient($environment));
249+
$migration->setEnvironment($environment);
249250
$migration->down();
250251

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

0 commit comments

Comments
 (0)