Skip to content

Commit 922d50e

Browse files
authored
Automatically run migration when --database is given. (#346)
* 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]>
1 parent d48c6b6 commit 922d50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ protected function promptForDatabaseOptions(string $directory, InputInterface $i
492492
);
493493
}
494494

495-
return [$input->getOption('database') ?? $defaultDatabase, $migrate ?? false];
495+
return [$input->getOption('database') ?? $defaultDatabase, $migrate ?? $input->hasOption('database')];
496496
}
497497

498498
/**

0 commit comments

Comments
 (0)