mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:54:04 +00:00
[2.2.0] Allow --path to be specified for migration commands (#211)
* Allow --path to be specified for migration commands * Fix tests
This commit is contained in:
parent
b3cf499ebd
commit
2b00665247
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ trait DealsWithMigrations
|
||||||
{
|
{
|
||||||
protected function getMigrationPaths()
|
protected function getMigrationPaths()
|
||||||
{
|
{
|
||||||
|
if ($this->input->hasOption('path') && $this->input->getOption('path')) {
|
||||||
|
return parent::getMigrationPaths();
|
||||||
|
}
|
||||||
|
|
||||||
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
|
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue