Skip to content

Commit

Permalink
* Fix bug when migrating without specifying path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlorente committed Sep 25, 2019
1 parent 4ddee22 commit 011d9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Traits/DataMigrationCommandTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait DataMigrationCommandTrait
*/
protected function getMigrationPath()
{
if (!is_null($targetPath = $this->input->getOption('path'))) {
if (is_string($targetPath = $this->input->getOption('path'))) {
return $this->laravel->basePath() . '/' . $targetPath;
} else {
return $this->laravel->databasePath() . DIRECTORY_SEPARATOR . 'migrations_data';
Expand Down

0 comments on commit 011d9c0

Please sign in to comment.