diff --git a/src/NewCommand.php b/src/NewCommand.php index f9bef70..dd0814a 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -492,7 +492,7 @@ protected function promptForDatabaseOptions(string $directory, InputInterface $i ); } - return [$input->getOption('database') ?? $defaultDatabase, $migrate ?? false]; + return [$input->getOption('database') ?? $defaultDatabase, $migrate ?? $input->hasOption('database')]; } /**