From 19c2a10d24dac3faab62ded0e8bb5edea1321aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jergu=C5=A1=20Lejko?= Date: Fri, 18 Oct 2019 15:04:27 +0200 Subject: [PATCH] return 1 when migrations table not found (#30321) --- src/Illuminate/Database/Console/Migrations/StatusCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Console/Migrations/StatusCommand.php b/src/Illuminate/Database/Console/Migrations/StatusCommand.php index 0f3da5077ae0..ec7055daf729 100644 --- a/src/Illuminate/Database/Console/Migrations/StatusCommand.php +++ b/src/Illuminate/Database/Console/Migrations/StatusCommand.php @@ -52,7 +52,9 @@ public function handle() $this->migrator->setConnection($this->option('database')); if (! $this->migrator->repositoryExists()) { - return $this->error('Migration table not found.'); + $this->error('Migration table not found.'); + + return 1; } $ran = $this->migrator->getRepository()->getRan();