Skip to content

Commit

Permalink
don't treat just pressing return as confirmation when executing a mig…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
craue committed Sep 8, 2011
1 parent f87afe9 commit 33f6fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function execute(InputInterface $input, OutputInterface $output)
if ($noInteraction === true) {
$version->execute($direction, $input->getOption('dry-run') ? true : false);
} else {
$confirmation = $this->getHelper('dialog')->askConfirmation($output, '<question>WARNING! You are about to execute a database migration that could result in schema changes and data lost. Are you sure you wish to continue? (y/n)</question>', 'y');
$confirmation = $this->getHelper('dialog')->askConfirmation($output, '<question>WARNING! You are about to execute a database migration that could result in schema changes and data lost. Are you sure you wish to continue? (y/n)</question>', false);
if ($confirmation === true) {
$version->execute($direction, $input->getOption('dry-run') ? true : false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function execute(InputInterface $input, OutputInterface $output)
if ($noInteraction === true) {
$migration->migrate($version, $dryRun);
} else {
$confirmation = $this->getHelper('dialog')->askConfirmation($output, '<question>WARNING! You are about to execute a database migration that could result in schema changes and data lost. Are you sure you wish to continue? (y/n)</question>', 'y');
$confirmation = $this->getHelper('dialog')->askConfirmation($output, '<question>WARNING! You are about to execute a database migration that could result in schema changes and data lost. Are you sure you wish to continue? (y/n)</question>', false);
if ($confirmation === true) {
$migration->migrate($version, $dryRun);
} else {
Expand Down

0 comments on commit 33f6fef

Please sign in to comment.