File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ class Migrate extends BaseCommand
20
20
* @var string
21
21
*/
22
22
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} ' ;
28
28
29
29
/**
30
30
* The console command description.
@@ -74,8 +74,6 @@ protected function getMigrationPaths(): array
74
74
return $ paths ;
75
75
}
76
76
77
- return array_merge (
78
- $ this ->migrator ->paths (), [$ this ->getMigrationPath ()]
79
- );
77
+ return [$ this ->getMigrationPath ()];
80
78
}
81
79
}
Original file line number Diff line number Diff line change 4
4
5
5
use DragonCode \LaravelActions \Concerns \Anonymous ;
6
6
use DragonCode \LaravelActions \ServiceProvider ;
7
+ use Illuminate \Database \Query \Builder ;
7
8
use Illuminate \Foundation \Testing \RefreshDatabase ;
8
9
use Illuminate \Support \Facades \DB ;
9
10
use Orchestra \Testbench \TestCase as BaseTestCase ;
@@ -46,7 +47,7 @@ protected function getEnvironmentSetUp($app)
46
47
$ this ->setDatabase ($ app );
47
48
}
48
49
49
- protected function table ()
50
+ protected function table (): Builder
50
51
{
51
52
return DB ::table ($ this ->table );
52
53
}
You can’t perform that action at this time.
0 commit comments