Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding --force option to migration generation command.
  • Loading branch information
deardooley committed Mar 1, 2015
commit 4f9cd8ca36e2e8d39e9aa04b0c3963fb3dbe9e7d
3 changes: 2 additions & 1 deletion src/commands/MigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function fire()
$this->comment( $message );
$this->line('');

if ( $this->confirm("Proceed with the migration creation? [Yes|no]") ) {
if ( $this->option('force') || $this->confirm("Proceed with the migration creation? [Yes|no]") ) {

$this->line('');

Expand Down Expand Up @@ -68,6 +68,7 @@ protected function getOptions()
{
return array(
array('table', null, InputOption::VALUE_OPTIONAL, 'Roles table.', 'roles'),
array('force', null, InputOption::VALUE_NONE, 'Force creation without a prompt'),
);
}

Expand Down