From 5bcfe3c52d893c4af0e590911880a0898c32240e Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Sat, 14 Dec 2019 15:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=96=B0=E5=A2=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/command/InstallCommand.php | 3 +++ extend/catcher/command/SeedRunCommand.php | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extend/catcher/command/InstallCommand.php b/extend/catcher/command/InstallCommand.php index 78e2c0e..f8d5212 100644 --- a/extend/catcher/command/InstallCommand.php +++ b/extend/catcher/command/InstallCommand.php @@ -165,6 +165,9 @@ class InstallCommand extends Command if (is_dir(CatchAdmin::moduleMigrationsDirectory($moduleInfo['alias']))) { $output = Console::call('catch-migrate:run', [$moduleInfo['alias']]); $this->output->info(sprintf('module [%s] migrations %s', $moduleInfo['alias'], $output->fetch())); + + $seedOut = Console::call('catch-seed:run', [$moduleInfo['alias']]); + $this->output->info(sprintf('module [%s] seeds %s', $moduleInfo['alias'], $seedOut->fetch())); } } } diff --git a/extend/catcher/command/SeedRunCommand.php b/extend/catcher/command/SeedRunCommand.php index c9b756b..0daeb97 100644 --- a/extend/catcher/command/SeedRunCommand.php +++ b/extend/catcher/command/SeedRunCommand.php @@ -42,8 +42,7 @@ EOT $start = microtime(true); $this->seed($seed); $end = microtime(true); - - $output->writeln(CatchAdmin::moduleSeedsDirectory($this->module)); + $this->seeds = null; $output->writeln('All Done. Took ' . sprintf('%.4fs', $end - $start) . ''); }