Skip to content

Commit

Permalink
Merge pull request #53 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Migration file paths excluded
  • Loading branch information
Andrey Helldar authored Feb 17, 2022
2 parents 6242332 + c800a9b commit 42b84c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions src/Console/Migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class Migrate extends BaseCommand
* @var string
*/
protected $signature = Names::MIGRATE
. ' {--database= : The database connection to use}'
. ' {--force : Force the operation to run when in production}'
. ' {--step : Force the actions to be run so they can be rolled back individually}'
. ' {--path=* : The path(s) to the migrations files to be executed}'
. ' {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}';
. ' {--database= : The database connection to use}'
. ' {--force : Force the operation to run when in production}'
. ' {--step : Force the actions to be run so they can be rolled back individually}'
. ' {--path=* : The path(s) to the migrations files to be executed}'
. ' {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}';

/**
* The console command description.
Expand Down Expand Up @@ -74,8 +74,6 @@ protected function getMigrationPaths(): array
return $paths;
}

return array_merge(
$this->migrator->paths(), [$this->getMigrationPath()]
);
return [$this->getMigrationPath()];
}
}
3 changes: 2 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use DragonCode\LaravelActions\Concerns\Anonymous;
use DragonCode\LaravelActions\ServiceProvider;
use Illuminate\Database\Query\Builder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
use Orchestra\Testbench\TestCase as BaseTestCase;
Expand Down Expand Up @@ -46,7 +47,7 @@ protected function getEnvironmentSetUp($app)
$this->setDatabase($app);
}

protected function table()
protected function table(): Builder
{
return DB::table($this->table);
}
Expand Down

0 comments on commit 42b84c8

Please sign in to comment.