Skip to content

Commit

Permalink
fix #17546, settings the --database option in the migrate command (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Jan 26, 2017
1 parent 6e6fc0d commit 1d81add
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Database/Migrations/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ public function paths()
*/
public function setConnection($name)
{
if (! is_null($name)) {
$this->resolver->setDefaultConnection($name);
}

$this->repository->setSource($name);

$this->connection = $name;
Expand Down

0 comments on commit 1d81add

Please sign in to comment.