Skip to content

Commit

Permalink
Automatically run migration when --database is given. (#346)
Browse files Browse the repository at this point in the history
* Automatically run migration when `--database` is given.

fixes #345

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Jun 14, 2024
1 parent d48c6b6 commit 922d50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')];
}

/**
Expand Down

0 comments on commit 922d50e

Please sign in to comment.