Skip to content

Commit

Permalink
Move Migration call to after Options got parsed
Browse files Browse the repository at this point in the history
Fixes #291
  • Loading branch information
theseer committed Nov 30, 2020
1 parent 267e2d8 commit 05d3cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/cli/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public function run(): int {
try {
$this->ensureFitness();
$this->setupRuntime();
$this->migrationService->runMandatory();
$this->execute();

return self::RC_OK;
Expand Down Expand Up @@ -212,6 +211,7 @@ private function execute(): void {

try {
$this->showHeader();
$this->migrationService->runMandatory();
$this->locator->getCommand($command)->execute();
$this->showFooter();
} catch (CommandLocatorException $e) {
Expand Down

0 comments on commit 05d3cf1

Please sign in to comment.