Skip to content

Commit 42b84c8

Browse files
author
Andrey Helldar
authored
Merge pull request #53 from TheDragonCode/2.x
Migration file paths excluded
2 parents 6242332 + c800a9b commit 42b84c8

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/Console/Migrate.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class Migrate extends BaseCommand
2020
* @var string
2121
*/
2222
protected $signature = Names::MIGRATE
23-
. ' {--database= : The database connection to use}'
24-
. ' {--force : Force the operation to run when in production}'
25-
. ' {--step : Force the actions to be run so they can be rolled back individually}'
26-
. ' {--path=* : The path(s) to the migrations files to be executed}'
27-
. ' {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}';
23+
. ' {--database= : The database connection to use}'
24+
. ' {--force : Force the operation to run when in production}'
25+
. ' {--step : Force the actions to be run so they can be rolled back individually}'
26+
. ' {--path=* : The path(s) to the migrations files to be executed}'
27+
. ' {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}';
2828

2929
/**
3030
* The console command description.
@@ -74,8 +74,6 @@ protected function getMigrationPaths(): array
7474
return $paths;
7575
}
7676

77-
return array_merge(
78-
$this->migrator->paths(), [$this->getMigrationPath()]
79-
);
77+
return [$this->getMigrationPath()];
8078
}
8179
}

tests/TestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use DragonCode\LaravelActions\Concerns\Anonymous;
66
use DragonCode\LaravelActions\ServiceProvider;
7+
use Illuminate\Database\Query\Builder;
78
use Illuminate\Foundation\Testing\RefreshDatabase;
89
use Illuminate\Support\Facades\DB;
910
use Orchestra\Testbench\TestCase as BaseTestCase;
@@ -46,7 +47,7 @@ protected function getEnvironmentSetUp($app)
4647
$this->setDatabase($app);
4748
}
4849

49-
protected function table()
50+
protected function table(): Builder
5051
{
5152
return DB::table($this->table);
5253
}

0 commit comments

Comments
 (0)