Skip to content

Commit

Permalink
Fixed migration path issue #50
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Feb 19, 2019
1 parent b69ee7c commit 0390288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Migration/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
throw new RuntimeException('Manager not found');
}

$config = $this->getConfig();
$config = $manager->getConfig();

$configFilePath = $config->getConfigFilePath();
$output->writeln('<info>using config file</info> ' . $configFilePath);
Expand All @@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$migrationsPaths = $config->getMigrationPaths();
}

$migrationsPaths = !is_array($migrationsPaths) ? (array)$migrationsPaths : [];
$migrationsPaths = is_array($migrationsPaths) ? $migrationsPaths : (array)$migrationsPaths;

// No paths? That's a problem.
if (empty($migrationsPaths[0])) {
Expand Down

0 comments on commit 0390288

Please sign in to comment.