From 2b00665247970a7dd4b514beb1ac3e5c8c9a3305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 7 Nov 2019 21:44:45 +0100 Subject: [PATCH] [2.2.0] Allow --path to be specified for migration commands (#211) * Allow --path to be specified for migration commands * Fix tests --- src/Traits/DealsWithMigrations.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Traits/DealsWithMigrations.php b/src/Traits/DealsWithMigrations.php index 48531587..a51bfa57 100644 --- a/src/Traits/DealsWithMigrations.php +++ b/src/Traits/DealsWithMigrations.php @@ -8,6 +8,10 @@ trait DealsWithMigrations { protected function getMigrationPaths() { + if ($this->input->hasOption('path') && $this->input->getOption('path')) { + return parent::getMigrationPaths(); + } + return [config('tenancy.migrations_directory', database_path('migrations/tenant'))]; } }