diff --git a/src/TenancyServiceProvider.php b/src/TenancyServiceProvider.php index dc2090fd..b05ec551 100644 --- a/src/TenancyServiceProvider.php +++ b/src/TenancyServiceProvider.php @@ -88,13 +88,10 @@ class TenancyServiceProvider extends ServiceProvider Commands\Install::class, Commands\Migrate::class, Commands\TenantList::class, + Commands\TenantDump::class, Commands\MigrateFresh::class, ]); - if ((int) Str::before($this->app->version(), '.') >= 8) { - $this->commands([Commands\TenantDump::class]); - } - $this->publishes([ __DIR__ . '/../assets/config.php' => config_path('tenancy.php'), ], 'config'); diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index 52421a88..6a98475f 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -8,7 +8,6 @@ use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Schema; -use Illuminate\Support\Str; use Stancl\JobPipeline\JobPipeline; use Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper; use Stancl\Tenancy\Events\TenancyEnded; @@ -95,10 +94,6 @@ class CommandsTest extends TestCase /** @test */ public function migrate_command_loads_schema_state() { - if ((int) Str::before($this->app->version(), '.') < 8) { - $this->markTestSkipped("'Laravel version doesn't support schema dumps.'"); - } - $tenant = Tenant::create(); $this->assertFalse(Schema::hasTable('schema_users')); @@ -119,10 +114,6 @@ class CommandsTest extends TestCase /** @test */ public function dump_command_works() { - if ((int) Str::before($this->app->version(), '.') < 9) { - $this->markTestSkipped("'Laravel version doesn't support schema dumps.'"); - } - $tenant = Tenant::create(); Artisan::call('tenants:migrate');