From 6c3f86a61188f15b43b324f0d0815eace9674d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 10 Aug 2019 14:31:05 +0200 Subject: [PATCH] change migration path --- src/TenancyServiceProvider.php | 2 +- tests/TestCase.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/TenancyServiceProvider.php b/src/TenancyServiceProvider.php index 18e6774e..6c5bb391 100644 --- a/src/TenancyServiceProvider.php +++ b/src/TenancyServiceProvider.php @@ -38,7 +38,7 @@ class TenancyServiceProvider extends ServiceProvider ], 'config'); $this->publishes([ - __DIR__ . '/assets/2019_08_08_000000_create_tenants_table.php' => database_path('migrations'), + __DIR__ . '/assets/migrations/2019_08_08_000000_create_tenants_table.php' => database_path('migrations'), ], 'migrations'); $this->loadRoutesFrom(__DIR__ . '/routes.php'); diff --git a/tests/TestCase.php b/tests/TestCase.php index 5561311e..aa81f6ff 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -25,7 +25,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase // $this->loadLaravelMigrations(); - $this->loadMigrationsFrom(__DIR__ . '/../src/assets/migrations'); + $this->loadMigrationsFrom(realpath(__DIR__ . '/../src/assets/migrations')); // Artisan::call('migrate:fresh', [ // '--path' => __DIR__ . '/../src/assets/migrations' @@ -108,7 +108,9 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase protected function getPackageProviders($app) { - return [\Stancl\Tenancy\TenancyServiceProvider::class]; + return [ + \Stancl\Tenancy\TenancyServiceProvider::class, + ]; } protected function getPackageAliases($app)