Skip to content

Commit

Permalink
Ensures MigrationCreator::create receives $create as a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
vlakoff committed May 5, 2016
1 parent a6ddacb commit 358ae65
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ public function fire()

$table = $this->input->getOption('table');

$create = $this->input->getOption('create');
$create = $this->input->getOption('create') ?: false;

if (! $table && is_string($create)) {
$table = $create;
$create = true;
}

// Now we are ready to write the migration out to disk. Once we've written
Expand Down

0 comments on commit 358ae65

Please sign in to comment.