diff --git a/src/Traits/DealsWithMigrations.php b/src/Traits/DealsWithMigrations.php index a51bfa579..f730cf071 100644 --- a/src/Traits/DealsWithMigrations.php +++ b/src/Traits/DealsWithMigrations.php @@ -12,6 +12,6 @@ protected function getMigrationPaths() return parent::getMigrationPaths(); } - return [config('tenancy.migrations_directory', database_path('migrations/tenant'))]; + return config('tenancy.migration_paths', [config('tenancy.migrations_directory') ?? database_path('migrations/tenant')]); } } diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index 071f929cc..6bcf6fd9a 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -18,7 +18,7 @@ public function setUp(): void { parent::setUp(); - config(['tenancy.migrations_directory' => database_path('../migrations')]); + config(['tenancy.migration_paths', [database_path('../migrations')]]); } /** @test */ diff --git a/tests/TestCase.php b/tests/TestCase.php index 8df825617..336bff07e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -96,7 +96,7 @@ protected function getEnvironmentSetUp($app) 'tenancy.redis.tenancy' => env('TENANCY_TEST_REDIS_TENANCY', true), 'database.redis.client' => env('TENANCY_TEST_REDIS_CLIENT', 'phpredis'), 'tenancy.redis.prefixed_connections' => ['default'], - 'tenancy.migrations_directory' => database_path('../migrations'), + 'tenancy.migration_paths' => [database_path('../migrations')], 'tenancy.storage_drivers.db.connection' => 'central', 'tenancy.bootstrappers.redis' => \Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class, 'queue.connections.central' => [