Skip to content

Commit 011d9c0

Browse files
committed
* Fix bug when migrating without specifying path.
1 parent 4ddee22 commit 011d9c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Traits/DataMigrationCommandTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ trait DataMigrationCommandTrait
2424
*/
2525
protected function getMigrationPath()
2626
{
27-
if (!is_null($targetPath = $this->input->getOption('path'))) {
27+
if (is_string($targetPath = $this->input->getOption('path'))) {
2828
return $this->laravel->basePath() . '/' . $targetPath;
2929
} else {
3030
return $this->laravel->databasePath() . DIRECTORY_SEPARATOR . 'migrations_data';

0 commit comments

Comments
 (0)