Skip to content

Commit

Permalink
Optimal appStoreService (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s authored May 7, 2024
1 parent 7af61b9 commit ea99ad7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/CrontabMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

use Hyperf\Command\Command as Base;
use Hyperf\Database\Migrations\Migrator;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\NullOutput;

class CrontabMigrateCommand extends Base
Expand All @@ -36,7 +38,7 @@ public function __invoke()
$migrator = $this->migrator;
$migrator->setConnection($connection);
$this->migrator
->setOutput(new NullOutput())
->setOutput(new NullOutput(new ArrayInput([]), new ConsoleOutput()))
->run(dirname(__DIR__, 2) . '/Database/Migrations');
}

Expand Down

0 comments on commit ea99ad7

Please sign in to comment.